summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-05-23 21:54:38 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-05-23 21:54:38 +0200
commit92590410a0ce28fbeb984eec066d53f03d8f6212 (patch)
tree5754381ba84117735fa972d9c76d9814bcfd9686 /gitlab/v4/objects.py
parentaf70ec3e2ff17385c4b72fe4d317313e94f5cb0b (diff)
downloadgitlab-92590410a0ce28fbeb984eec066d53f03d8f6212.tar.gz
[v4] Update iid attr for issues and MRs
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 3cf22c0..6987da8 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -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',
@@ -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',