Skip to content

Commit 20143f5

Browse files
author
Gauvain Pocentek
committed
API docs: add managers doc in GitlabObject's
1 parent e57a86b commit 20143f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/ext/object_tmpl.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{% for attr_name, cls, dummy in obj.managers %}
2+
.. attribute:: {{ attr_name }}
3+
4+
{{ cls | classref() }} - Manager for {{ cls.obj_cls | classref() }} objects.
5+
6+
{% endfor %}
7+
18
.. method:: save(**kwargs)
29

310
Send the modified object to the GitLab server. The following attributes are

0 commit comments

Comments
 (0)