Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions gitlab/v4/objects/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down