Skip to content

Commit 724f356

Browse files
committed
Put 'req' in the context so that the summary will be correct.
Fixes the "Extraneous Information" problems in adamlaska#142 and adamlaska#143. - Legacy-Id: 597
1 parent c6493ad commit 724f356

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/mailinglists/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ def render_template(self, *args, **kwargs):
200200
self.extra_context['mlist_known'] = self.mlist_known
201201
if self.step > 0:
202202
self.extra_context['form0'] = self.clean_forms[0]
203+
if self.clean_forms[0]['mail_type'].data.startswith('close'):
204+
self.extra_context['req'] = 'delete'
205+
else:
206+
self.extra_context['req'] = 'add'
203207
if self.step > self.main_step:
204208
self.extra_context['main_form'] = self.clean_forms[self.main_step]
205209
self.extra_context['requestor_is_approver'] = self.requestor_is_approver

0 commit comments

Comments
 (0)