We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
admins
1 parent 35543cc commit 50a98e0Copy full SHA for 50a98e0
readthedocs/core/templatetags/privacy_tags.py
@@ -22,6 +22,16 @@ def is_member(user, project):
22
return AdminPermission.is_member(user, project)
23
24
25
+@register.filter
26
+def admins(obj):
27
+ """
28
+ Return admin users on the object.
29
+
30
+ The object could an Organization or a Project.
31
32
+ return AdminPermission.admins(obj)
33
34
35
@register.simple_tag(takes_context=True)
36
def get_public_projects(context, user):
37
# 'Exists()' checks if the project has any good builds.
0 commit comments