Skip to content

Commit 3811dcf

Browse files
committed
Don't import Acronym, since we don't use it.
Filter by active groups when creating the list of groups. - Legacy-Id: 286
1 parent 4fd0113 commit 3811dcf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ietf/mailinglists/forms.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django import newforms as forms
22
from models import NonWgMailingList, ImportedMailingList
3-
from ietf.idtracker.models import PersonOrOrgInfo, IETFWG, Acronym
3+
from ietf.idtracker.models import PersonOrOrgInfo, IETFWG
44
import re
55

66
class 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):

0 commit comments

Comments
 (0)