Skip to content

Commit 9259041

Browse files
author
Gauvain Pocentek
committed
[v4] Update iid attr for issues and MRs
1 parent af70ec3 commit 9259041

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gitlab/v4/objects.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,7 @@ class ProjectIssue(GitlabObject):
921921
_url = '/projects/%(project_id)s/issues/'
922922
_constructorTypes = {'author': 'User', 'assignee': 'User',
923923
'milestone': 'ProjectMilestone'}
924-
optionalListAttrs = ['state', 'labels', 'milestone', 'iid', 'order_by',
925-
'sort']
924+
optionalListAttrs = ['state', 'labels', 'milestone', 'order_by', 'sort']
926925
requiredUrlAttrs = ['project_id']
927926
requiredCreateAttrs = ['title']
928927
optionalCreateAttrs = ['description', 'assignee_id', 'milestone_id',
@@ -1178,7 +1177,7 @@ class ProjectMergeRequest(GitlabObject):
11781177
optionalUpdateAttrs = ['target_branch', 'assignee_id', 'title',
11791178
'description', 'state_event', 'labels',
11801179
'milestone_id']
1181-
optionalListAttrs = ['iid', 'state', 'order_by', 'sort']
1180+
optionalListAttrs = ['iids', 'state', 'order_by', 'sort']
11821181

11831182
managers = (
11841183
('notes', 'ProjectMergeRequestNoteManager',

0 commit comments

Comments
 (0)