Skip to content

Commit

Permalink
Update to conform to django.template.response.TemplateResponse.__init…
Browse files Browse the repository at this point in the history
…__() signature


This solves a bug relative to the use of MultipleObjectTemplateResponseMixin.render_to_response() while subclassing BaseListView, raising a TypeError Exception ("__init__() got an unexpected keyword argument 'request'")
  • Loading branch information
zedr committed Jul 24, 2012
1 parent 38ce709 commit 6fe3a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/views/generic/base.py
Expand Up @@ -118,8 +118,8 @@ def render_to_response(self, context, **response_kwargs):
passed to the constructor of the response class.
"""
return self.response_class(
request = self.request,
template = self.get_template_names(),
self.request,
self.get_template_names(),
context = context,
**response_kwargs
)
Expand Down

0 comments on commit 6fe3a44

Please sign in to comment.