Ticket #1834: adminapplist.diff
File adminapplist.diff, 633 bytes (added by , 19 years ago) |
---|
-
adminapplist.py
53 53 54 54 def get_admin_app_list(parser, token): 55 55 """ 56 {% get_admin_app_list as app_list %} 56 Returns a list of installed applications and models for which the current user 57 has at least one permission. 58 59 Syntax:: 60 61 {% get_admin_app_list as [context_var_containing_app_list] %} 62 63 Example usage:: 64 65 {% get_admin_app_list as admin_app_list %} 57 66 """ 58 67 tokens = token.contents.split() 59 68 if len(tokens) < 3: