summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 93770f9..7872ecf 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -414,7 +414,8 @@ class Gitlab(object):
raise GitlabDeleteError('Missing attribute(s): %s' %
", ".join(missing))
- url = self._construct_url(id_=obj.id, obj=obj, parameters=params)
+ obj_id = getattr(obj, obj.idAttr)
+ url = self._construct_url(id_=obj_id, obj=obj, parameters=params)
headers = self._create_headers()
# Remove attributes that are used in url so that there is only