Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure resource and context are generated before getting the template

  • Loading branch information...
commit 5beb0cc5fee2f233392b498986fc3c1bf6234d87 1 parent 9fb2318
@bfirsh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  class_based_views/base.py
View
3  class_based_views/base.py
@@ -103,7 +103,8 @@ def render_html(self, *args, **kwargs):
"""
Render a template with a given resource
"""
- return self.get_template().render(self.get_context(*args, **kwargs))
+ context = self.get_context(*args, **kwargs)
+ return self.get_template().render(context)
def get_template(self):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.