Skip to content

Commit 34a621f

Browse files
author
Michael Lee
committed
nwg_list_submit bug fix
- Legacy-Id: 624
1 parent 6c35c89 commit 34a621f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

ietf/mailinglists/views.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@ def get_template(self):
7474
return templates
7575
def render_template(self, *args, **kwargs):
7676
self.extra_context['clean_forms'] = self.clean_forms
77-
form0 = self.clean_forms[0]
78-
add_edit = form0.clean_data['add_edit']
7977
if self.step == 3:
78+
form0 = self.clean_forms[0]
79+
add_edit = form0.clean_data['add_edit']
8080
if add_edit == 'add' or add_edit == 'edit':
8181
# Can't get the choice mapping directly from the form
8282
self.extra_context['area'] = formchoice(self.clean_forms[1], 'area')
8383
self.extra_context['approver'] = formchoice(self.clean_forms[2], 'approver')
8484
if self.step == 2 and add_edit == 'delete':
85+
form0 = self.clean_forms[0]
86+
add_edit = form0.clean_data['add_edit']
8587
self.extra_context['list_q'] = NonWgMailingList.objects.get(pk=self.clean_forms[0].clean_data['list_id_delete'])
8688
self.extra_context['approver'] = formchoice(self.clean_forms[1], 'approver')
8789
return super(NonWgWizard, self).render_template(*args, **kwargs)

ietf/templates/mailinglists/nwg_wizard_addedit_step1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% endblock %}
66

77
{% block nwgcontent %}
8-
<h2>Step 2</h2>
8+
<h2>Step {{ step|add:"1" }}</h2>
99
<h4>Please provide the following information:</h4>
1010

1111
<form action="." method="POST">

0 commit comments

Comments
 (0)