diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-19 20:36:11 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-19 20:36:11 +0200 |
commit | c55fd4b43d6576aff3c679b701c0f5be0cb98281 (patch) | |
tree | f3eb60ca3f44ddf6e86865f8e18a485eb92eb978 /gitlab/objects.py | |
parent | 73627a21bc94d6c37adaa36ef3ab0475a05a46f3 (diff) | |
download | gitlab-c55fd4b43d6576aff3c679b701c0f5be0cb98281.tar.gz |
update ProjectLabel attributes
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 8638b13..8231219 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1340,9 +1340,9 @@ class ProjectLabel(GitlabObject): idAttr = 'name' requiredDeleteAttrs = ['name'] requiredCreateAttrs = ['name', 'color'] - requiredUpdateAttrs = [] - # FIXME: new_name is only valid with update - optionalCreateAttrs = ['new_name'] + optionalCreateAttrs = ['description'] + requiredUpdateAttrs = ['name'] + optionalUpdateAttrs = ['new_name', 'color', 'description'] class ProjectLabelManager(BaseManager): |