diff --git a/gitlab/v4/objects/labels.py b/gitlab/v4/objects/labels.py index 32d4f6ba0..d1d728098 100644 --- a/gitlab/v4/objects/labels.py +++ b/gitlab/v4/objects/labels.py @@ -23,7 +23,8 @@ class GroupLabel(SubscribableMixin, SaveMixin, ObjectDeleteMixin, RESTObject): - _id_attr = "name" + _id_attr = "id" + _repr_attr = "name" manager: "GroupLabelManager" # Update without ID, but we need an ID to get from list. @@ -87,7 +88,8 @@ def update( # type: ignore class ProjectLabel( PromoteMixin, SubscribableMixin, SaveMixin, ObjectDeleteMixin, RESTObject ): - _id_attr = "name" + _id_attr = "id" + _repr_attr = "name" manager: "ProjectLabelManager" # Update without ID, but we need an ID to get from list.