summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-11-05 14:00:54 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-11-05 14:00:54 +0100
commit20143f58723a2e1de1eb436a414d2afd31f8ed24 (patch)
treeefa2ddbc8e9c7f044b5d1a0d0adae2f8433d5c8e
parente57a86b7b67a4dd7f684475ddba03703d169c9c6 (diff)
downloadgitlab-20143f58723a2e1de1eb436a414d2afd31f8ed24.tar.gz
API docs: add managers doc in GitlabObject's
-rw-r--r--docs/ext/object_tmpl.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ext/object_tmpl.j2 b/docs/ext/object_tmpl.j2
index 327eafb..4bb9070 100644
--- a/docs/ext/object_tmpl.j2
+++ b/docs/ext/object_tmpl.j2
@@ -1,3 +1,10 @@
+{% for attr_name, cls, dummy in obj.managers %}
+.. attribute:: {{ attr_name }}
+
+ {{ cls | classref() }} - Manager for {{ cls.obj_cls | classref() }} objects.
+
+{% endfor %}
+
.. method:: save(**kwargs)
Send the modified object to the GitLab server. The following attributes are