Put 'req' in the context so that the summary will be correct.

Fixes the "Extraneous Information" problems in #142 and #143.
 - Legacy-Id: 597
This commit is contained in:
Bill Fenner 2007-06-21 19:21:42 +00:00
parent c6493ad8ab
commit 724f356bc4

View file

@ -200,6 +200,10 @@ class ListReqWizard(wizard.Wizard):
self.extra_context['mlist_known'] = self.mlist_known
if self.step > 0:
self.extra_context['form0'] = self.clean_forms[0]
if self.clean_forms[0]['mail_type'].data.startswith('close'):
self.extra_context['req'] = 'delete'
else:
self.extra_context['req'] = 'add'
if self.step > self.main_step:
self.extra_context['main_form'] = self.clean_forms[self.main_step]
self.extra_context['requestor_is_approver'] = self.requestor_is_approver