Opened 17 years ago

Closed 17 years ago

#7168 closed (duplicate)

FormWizard broken

Reported by: mr_crick Owned by: nobody
Component: contrib.formtools Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

FormWizard is broken in trunk: it always passes step=0 to get_template(). This can be fixed by changing

        return render_to_response(self.get_template(self.step), dict(context,
            step_field=self.step_field_name,
            step0=step,
            step=step + 1,
            step_count=self.num_steps(),
            form=form,
            previous_fields=previous_fields
        ), context_instance=RequestContext(request))

to

        return render_to_response(self.get_template(step), dict(context,
            step_field=self.step_field_name,
            step0=step,
            step=step + 1,
            step_count=self.num_steps(),
            form=form,
            previous_fields=previous_fields
        ), context_instance=RequestContext(request))

Change History (1)

comment:1 by anonymous, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #6893

Note: See TracTickets for help on using tickets.
Back to Top