- Timestamp:
- Dec 12, 2011, 12:07:34 AM (14 years ago)
- Branches:
- master, space-access, stable, stage, test-hooks
- Children:
- 1f4cc3c
- Parents:
- a836fd4
- git-author:
- Alex Dehnert <adehnert@…> (12/12/11 00:07:34)
- git-committer:
- Alex Dehnert <adehnert@…> (12/12/11 00:07:34)
- File:
-
- 1 edited
-
asadb/util/dump_group_perms.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
asadb/util/dump_group_perms.py
rf1506a6 rd7f5dc5 17 17 def dump_group_perms(): 18 18 groups = [] 19 for group in django.contrib.auth.models.Group.objects. all():19 for group in django.contrib.auth.models.Group.objects.order_by('name'): 20 20 groups.append((group.name, [ 21 perm_tuple(perm) for perm in group.permissions. all()21 perm_tuple(perm) for perm in group.permissions.order_by('content_type__app_label', 'content_type__model', 'codename', ) 22 22 ])) 23 23 return groups
Note: See TracChangeset
for help on using the changeset viewer.