Changes between Version 7 and Version 8 of Ticket #28943


Ignore:
Timestamp:
Dec 20, 2017, 9:00:54 AM (7 years ago)
Author:
James Pic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28943 – Description

    v7 v8  
    3636    """
    3737    def get(self, request, *args, **kwargs):
    38         return self.render_to_response()
     38        return self.render_to_response(**kwargs)
    3939
    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)
    4242        return self.render_to_response(context)
    4343}}}
     
    5050    def get(self, request, *a, **k):
    5151        self.token = self.generatetoken()
    52         return self.render_to_response()
     52        return self.render_to_response(**k)
    5353
    5454    def post(self, request, *a, **k):
    5555        if not self.dostuff():
    5656            return http.HttpResponseBadRequest()
    57         return self.render_to_response()
     57        return self.render_to_response(**k)
    5858}}}
Back to Top