Changes between Version 7 and Version 8 of Ticket #28943
- Timestamp:
- Dec 20, 2017, 9:00:54 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28943 – Description
v7 v8 36 36 """ 37 37 def get(self, request, *args, **kwargs): 38 return self.render_to_response( )38 return self.render_to_response(**kwargs) 39 39 40 def render_to_response(self, context=None ):41 context = context or self.get_context_data( self.kwargs)40 def render_to_response(self, context=None, **kwargs): 41 context = context or self.get_context_data(**kwargs) 42 42 return self.render_to_response(context) 43 43 }}} … … 50 50 def get(self, request, *a, **k): 51 51 self.token = self.generatetoken() 52 return self.render_to_response( )52 return self.render_to_response(**k) 53 53 54 54 def post(self, request, *a, **k): 55 55 if not self.dostuff(): 56 56 return http.HttpResponseBadRequest() 57 return self.render_to_response( )57 return self.render_to_response(**k) 58 58 }}}