mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Removed unnecessary assignments in various code.
This commit is contained in:
committed by
Mariusz Felisiak
parent
80482e9249
commit
8b3f1c35dd
@@ -80,8 +80,7 @@ class SimpleTemplateResponse(HttpResponse):
|
||||
"""
|
||||
template = self.resolve_template(self.template_name)
|
||||
context = self.resolve_context(self.context_data)
|
||||
content = template.render(context, self._request)
|
||||
return content
|
||||
return template.render(context, self._request)
|
||||
|
||||
def add_post_render_callback(self, callback):
|
||||
"""Add a new post-rendering callback.
|
||||
|
||||
Reference in New Issue
Block a user