Skip to content

Commit

Permalink
[v4] Update iid attr for issues and MRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed May 23, 2017
1 parent af70ec3 commit 9259041
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gitlab/v4/objects.py
Expand Up @@ -921,8 +921,7 @@ class ProjectIssue(GitlabObject):
_url = '/projects/%(project_id)s/issues/'
_constructorTypes = {'author': 'User', 'assignee': 'User',
'milestone': 'ProjectMilestone'}
optionalListAttrs = ['state', 'labels', 'milestone', 'iid', 'order_by',
'sort']
optionalListAttrs = ['state', 'labels', 'milestone', 'order_by', 'sort']
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['title']
optionalCreateAttrs = ['description', 'assignee_id', 'milestone_id',
Expand Down Expand Up @@ -1178,7 +1177,7 @@ class ProjectMergeRequest(GitlabObject):
optionalUpdateAttrs = ['target_branch', 'assignee_id', 'title',
'description', 'state_event', 'labels',
'milestone_id']
optionalListAttrs = ['iid', 'state', 'order_by', 'sort']
optionalListAttrs = ['iids', 'state', 'order_by', 'sort']

managers = (
('notes', 'ProjectMergeRequestNoteManager',
Expand Down

0 comments on commit 9259041

Please sign in to comment.