File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from django import newforms as forms
22from models import NonWgMailingList , ImportedMailingList
3- from ietf .idtracker .models import PersonOrOrgInfo , IETFWG , Acronym
3+ from ietf .idtracker .models import PersonOrOrgInfo , IETFWG
44import re
55
66class NonWgStep1 (forms .Form ):
@@ -44,8 +44,7 @@ class ListReqStep1(forms.Form):
4444 ('movenon' , 'Move existing non-WG email list to selected domain above' ),
4545 ('closenon' , 'Close existing non-WG email list at selected domain above' ),
4646 ), widget = forms .RadioSelect ())
47- #group = forms.ChoiceField(required=False)
48- group = forms .ModelChoiceField (queryset = IETFWG .objects .all ().select_related ().order_by ('acronym.acronym' ), required = False , empty_label = "-- Select Working Group" )
47+ group = forms .ModelChoiceField (queryset = IETFWG .objects .all ().filter (status = IETFWG .ACTIVE ).select_related (depth = 1 ).order_by ('acronym.acronym' ), required = False , empty_label = "-- Select Working Group" )
4948 domain_name = forms .ChoiceField (choices = DOMAIN_CHOICES , required = False , widget = forms .Select (attrs = {'onChange' : 'set_domain(this)' }))
5049 list_to_close = forms .ModelChoiceField (queryset = ImportedMailingList .objects .all (), required = False , empty_label = "-- Select List To Close" )
5150 def mail_type_fields (self ):
You can’t perform that action at this time.
0 commit comments