summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-09-19 08:01:41 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-09-19 08:01:41 +0200
commite09581fccba625e4a0cf9eb67de2a9471fce3b9d (patch)
treefd5eb5960cd4900a6779747825cd491ef7c79b5a /gitlab/v4/objects.py
parent89bf53f577fa8952902179b176ae828eb5701633 (diff)
downloadgitlab-e09581fccba625e4a0cf9eb67de2a9471fce3b9d.tar.gz
Fix the labels attrs on MR and issues
Fixes #306
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index f1ec007..28d86f5 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -960,6 +960,12 @@ class ProjectIssueManager(CRUDMixin, RESTManager):
'milestone_id', 'labels', 'created_at',
'updated_at', 'state_event', 'due_date'))
+ def _sanitize_data(self, data, action):
+ new_data = data.copy()
+ if 'labels' in data:
+ new_data['labels'] = ','.join(data['labels'])
+ return new_data
+
class ProjectMember(SaveMixin, ObjectDeleteMixin, RESTObject):
_short_print_attr = 'username'