Changeset 7415a15 for asadb/groups/views.py
- Timestamp:
- Mar 31, 2012, 4:15:52 PM (14 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- e49def5
- Parents:
- 747c960
- git-author:
- Alex Dehnert <adehnert@…> (03/31/12 16:15:52)
- git-committer:
- Alex Dehnert <adehnert@…> (03/31/12 16:15:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/views.py
r747c960 r7415a15 564 564 565 565 def __init__(self, data=None, *args, **kwargs): 566 if data is None: data = {}567 else: data = data.copy()566 if not data: data = None 567 super(GroupFilter, self).__init__(data, *args, **kwargs) 568 568 active_pk = groups.models.GroupStatus.objects.get(slug='active').pk 569 data.setdefault('group_status', active_pk, ) 570 super(GroupFilter, self).__init__(data, *args, **kwargs) 569 self.form.initial['group_status'] = active_pk 571 570 572 571
Note: See TracChangeset
for help on using the changeset viewer.