diff options
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 6 |
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' |