Changeset b1a8ea7 for asadb/forms/views.py
- Timestamp:
- Sep 15, 2011, 4:19:05 PM (14 years ago)
- Branches:
- master, space-access, stable, stage, test-hooks
- Children:
- ba08462
- Parents:
- 5c68184
- git-author:
- Alex Dehnert <adehnert@…> (09/15/11 16:19:05)
- git-committer:
- Alex Dehnert <adehnert@…> (09/15/11 16:19:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/forms/views.py
r5c68184 rb1a8ea7 14 14 from django.forms import Form 15 15 from django.forms import ModelForm 16 from django.forms import ModelChoiceField 16 from django.forms import ModelChoiceField, ModelMultipleChoiceField 17 17 from django.db.models import Q 18 18 … … 226 226 227 227 class Form_GroupMembershipUpdate(ModelForm): 228 group = ModelChoiceField(queryset=groups.models.Group.active_groups.all()) 229 228 230 def __init__(self, *args, **kwargs): 229 231 super(Form_GroupMembershipUpdate, self).__init__(*args, **kwargs) … … 322 324 323 325 class Form_PersonMembershipUpdate(ModelForm): 326 groups = ModelMultipleChoiceField(queryset=groups.models.Group.active_groups.all()) 324 327 class Meta: 325 328 model = forms.models.PersonMembershipUpdate
Note: See TracChangeset
for help on using the changeset viewer.