Ticket #8690: params.diff

File params.diff, 973 bytes (added by Bob Thomas, 16 years ago)

Add request parameter to parse_params

  • django/contrib/formtools/preview.py

     
    2525
    2626    def __call__(self, request, *args, **kwargs):
    2727        stage = {'1': 'preview', '2': 'post'}.get(request.POST.get(self.unused_name('stage')), 'preview')
    28         self.parse_params(*args, **kwargs)
     28        self.parse_params(request, *args, **kwargs)
    2929        try:
    3030            method = getattr(self, stage + '_' + request.method.lower())
    3131        except AttributeError:
     
    8080
    8181    # METHODS SUBCLASSES MIGHT OVERRIDE IF APPROPRIATE ########################
    8282
    83     def parse_params(self, *args, **kwargs):
     83    def parse_params(self, request, *args, **kwargs):
    8484        """
    8585        Given captured args and kwargs from the URLconf, saves something in
    8686        self.state and/or raises Http404 if necessary.
Back to Top