From 3811dcf8ac3e463f44d36c23fd870700ee2efd7f Mon Sep 17 00:00:00 2001
From: Bill Fenner <fenner@fenron.net>
Date: Sun, 10 Jun 2007 13:37:14 +0000
Subject: [PATCH] Don't import Acronym, since we don't use it.

Filter by active groups when creating the list of groups.
 - Legacy-Id: 286
---
 ietf/mailinglists/forms.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ietf/mailinglists/forms.py b/ietf/mailinglists/forms.py
index 3a526c16a..0e5f6d8c1 100644
--- a/ietf/mailinglists/forms.py
+++ b/ietf/mailinglists/forms.py
@@ -1,6 +1,6 @@
 from django import newforms as forms
 from models import NonWgMailingList, ImportedMailingList
-from ietf.idtracker.models import PersonOrOrgInfo, IETFWG, Acronym
+from ietf.idtracker.models import PersonOrOrgInfo, IETFWG
 import re
 
 class NonWgStep1(forms.Form):
@@ -44,8 +44,7 @@ class ListReqStep1(forms.Form):
 	('movenon', 'Move existing non-WG email list to selected domain above'),
 	('closenon', 'Close existing non-WG email list at selected domain above'),
 	), widget=forms.RadioSelect())
-    #group = forms.ChoiceField(required=False)
-    group = forms.ModelChoiceField(queryset=IETFWG.objects.all().select_related().order_by('acronym.acronym'), required=False, empty_label="-- Select Working Group")
+    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")
     domain_name = forms.ChoiceField(choices=DOMAIN_CHOICES, required=False, widget = forms.Select(attrs={'onChange': 'set_domain(this)'}))
     list_to_close = forms.ModelChoiceField(queryset=ImportedMailingList.objects.all(), required=False, empty_label="-- Select List To Close")
     def mail_type_fields(self):