Skip to content

Commit 0eb450c

Browse files
committed
Finish the poorly-thought-through and poorly-implemented
GroupIETF->IETFWG rename. - Legacy-Id: 179
1 parent 380546a commit 0eb450c

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

ietf/idindex/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django import newforms as forms
2-
from ietf.idtracker.models import IDState, IDStatus, GroupIETF
2+
from ietf.idtracker.models import IDState, IDStatus, IETFWG
33
from ietf.idindex.models import orgs
44

55
class IDIndexSearchForm(forms.Form):
@@ -13,5 +13,5 @@ class IDIndexSearchForm(forms.Form):
1313
def __init__(self, *args, **kwargs):
1414
super(IDIndexSearchForm, self).__init__(*args, **kwargs)
1515
self.fields['id_tracker_state_id'].choices = [('', 'All/Any')] + IDState.choices()
16-
self.fields['wg_id'].choices = [('', 'All/Any')] + GroupIETF.choices()
16+
self.fields['wg_id'].choices = [('', 'All/Any')] + IETFWG.choices()
1717
self.fields['status_id'].choices = [('', 'All/Any')] + [(status.status_id, status.status) for status in IDStatus.objects.all()]

ietf/idindex/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from django.http import Http404
55
from django.template import RequestContext, Context, loader
66
from django.shortcuts import render_to_response
7-
from ietf.idtracker.models import Acronym, GroupIETF, InternetDraft
7+
from ietf.idtracker.models import Acronym, IETFWG, InternetDraft
88
from ietf.idindex.forms import IDIndexSearchForm
99
from ietf.idindex.models import alphabet, orgs, orgs_dict
1010
from ietf.utils import orl, flattenl
@@ -13,11 +13,11 @@
1313

1414
def wglist(request, wg=None):
1515
if wg == 'other':
16-
queryset = GroupIETF.objects.filter(
16+
queryset = IETFWG.objects.filter(
1717
orl([Q(group_acronym__acronym__istartswith="%d" % i) for i in range(0,10)])
1818
)
1919
else:
20-
queryset = GroupIETF.objects.filter(group_acronym__acronym__istartswith=wg)
20+
queryset = IETFWG.objects.filter(group_acronym__acronym__istartswith=wg)
2121
queryset = queryset.filter(group_type__type='WG').select_related().order_by('g_status.status', 'acronym.acronym')
2222
return object_list(request, queryset=queryset, template_name='idindex/wglist.html', allow_empty=True, extra_context=base_extra)
2323

ietf/mailinglists/forms.py

Lines changed: 2 additions & 2 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, GroupIETF, Acronym
3+
from ietf.idtracker.models import PersonOrOrgInfo, IETFWG, Acronym
44

55
class NonWgStep1(forms.Form):
66
add_edit = forms.ChoiceField(choices=(
@@ -52,7 +52,7 @@ def mail_type_fields(self):
5252
def __init__(self, *args, **kwargs):
5353
dname = kwargs.get('dname', 'ietf.org')
5454
super(ListReqStep1, self).__init__(*args, **kwargs)
55-
self.fields['group'].choices = [('', '-- Select Working Group')] + GroupIETF.choices()
55+
self.fields['group'].choices = [('', '-- Select Working Group')] + IETFWG.choices()
5656
self.fields['list_to_close'].choices = [('', '-- Select List To Close')] + ImportedMailingList.choices(dname)
5757
self.fields['domain_name'].initial = dname
5858
def clean_group(self):

ietf/proceedings/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.db import models
2-
from ietf.idtracker.models import Acronym, PersonOrOrgInfo, IRTF, AreaGroup
2+
from ietf.idtracker.models import Acronym, PersonOrOrgInfo, IRTF, AreaGroup, IETFWG
33
import datetime
44
from ietf.utils import log
55

@@ -48,12 +48,12 @@ def isWG(self):
4848
return False
4949
else:
5050
try:
51-
g_type_id = GroupIETF.objects.get(pk=self.group_acronym_id).group_type_id == 1
51+
g_type_id = IETFWG.objects.get(pk=self.group_acronym_id).group_type_id == 1
5252
if g_type_id == 1:
5353
return True
5454
else:
5555
return False
56-
except GroupIETF.DoesNotExist:
56+
except IETFWG.DoesNotExist:
5757
return False
5858

5959
class Meeting(models.Model):

0 commit comments

Comments
 (0)