Ticket #8690: params.diff
File params.diff, 973 bytes (added by , 16 years ago) |
---|
-
django/contrib/formtools/preview.py
25 25 26 26 def __call__(self, request, *args, **kwargs): 27 27 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) 29 29 try: 30 30 method = getattr(self, stage + '_' + request.method.lower()) 31 31 except AttributeError: … … 80 80 81 81 # METHODS SUBCLASSES MIGHT OVERRIDE IF APPROPRIATE ######################## 82 82 83 def parse_params(self, *args, **kwargs):83 def parse_params(self, request, *args, **kwargs): 84 84 """ 85 85 Given captured args and kwargs from the URLconf, saves something in 86 86 self.state and/or raises Http404 if necessary.