summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/snippets.py
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-05-07 22:50:11 +0200
committerJohn Villalovos <john@sodarock.com>2022-05-08 09:47:13 -0700
commit6b47c26d053fe352d68eb22a1eaf4b9a3c1c93e7 (patch)
tree4728804ac977fa74888beb47ef8759c7744d9a55 /gitlab/v4/objects/snippets.py
parent2373a4f13ee4e5279a424416cdf46782a5627067 (diff)
downloadgitlab-6b47c26d053fe352d68eb22a1eaf4b9a3c1c93e7.tar.gz
feat: display human-readable attribute in `repr()` if present
Diffstat (limited to 'gitlab/v4/objects/snippets.py')
-rw-r--r--gitlab/v4/objects/snippets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/snippets.py b/gitlab/v4/objects/snippets.py
index 9d9dcc4..83b1378 100644
--- a/gitlab/v4/objects/snippets.py
+++ b/gitlab/v4/objects/snippets.py
@@ -21,7 +21,7 @@ __all__ = [
class Snippet(UserAgentDetailMixin, SaveMixin, ObjectDeleteMixin, RESTObject):
- _short_print_attr = "title"
+ _repr_attr = "title"
@cli.register_custom_action("Snippet")
@exc.on_http_error(exc.GitlabGetError)
@@ -91,7 +91,7 @@ class SnippetManager(CRUDMixin, RESTManager):
class ProjectSnippet(UserAgentDetailMixin, SaveMixin, ObjectDeleteMixin, RESTObject):
_url = "/projects/{project_id}/snippets"
- _short_print_attr = "title"
+ _repr_attr = "title"
awardemojis: ProjectSnippetAwardEmojiManager
discussions: ProjectSnippetDiscussionManager