summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2014-10-26 06:21:12 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2014-10-26 06:21:12 +0100
commitf042d2f67c51c0de8d300ef6b1ee36ff5088cdc4 (patch)
tree73f44ca8462a42aef8a74c13ac24d0146afb87dc /gitlab.py
parentfa9215504d8b6dae2c776733721c718f2a1f2e1a (diff)
downloadgitlab-f042d2f67c51c0de8d300ef6b1ee36ff5088cdc4.tar.gz
ProjectLabel: use name as id attribute
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab.py b/gitlab.py
index e17be64..59318f8 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -970,11 +970,11 @@ class ProjectMilestone(GitlabObject):
class ProjectLabel(GitlabObject):
_url = '/projects/%(project_id)s/labels'
requiredUrlAttrs = ['project_id']
+ idAttr = 'name'
requiredDeleteAttrs = ['name']
requiredCreateAttrs = ['name', 'color']
# FIXME: new_name is only valid with update
optionalCreateAttrs = ['new_name']
- shortPrintAttr = 'name'
class ProjectFile(GitlabObject):