Ticket #19024: 19024.diff

File 19024.diff, 1.2 KB (added by Tim Graham, 12 years ago)
  • django/contrib/formtools/wizard/views.py

    diff --git a/django/contrib/formtools/wizard/views.py b/django/contrib/formtools/wizard/views.py
    index ea41e86..39acecb 100644
    a b class WizardView(TemplateView):  
    331331        self.storage.reset()
    332332        return done_response
    333333
    334     def get_form_prefix(self, step=None, form=None):
     334    def get_form_prefix(self, step=None):
    335335        """
    336336        Returns the prefix which will be used when calling the actual form for
    337         the given step. `step` contains the step-name, `form` the form which
    338         will be called with the returned prefix.
     337        the given step. `step` contains the step-name.
    339338
    340339        If no step is given, the form_prefix will determine the current step
    341340        automatically.
    class WizardView(TemplateView):  
    383382        kwargs.update({
    384383            'data': data,
    385384            'files': files,
    386             'prefix': self.get_form_prefix(step, self.form_list[step]),
     385            'prefix': self.get_form_prefix(step),
    387386            'initial': self.get_form_initial(step),
    388387        })
    389388        if issubclass(self.form_list[step], forms.ModelForm):
Back to Top