Changes between Initial Version and Version 1 of Ticket #28943
- Timestamp:
- Dec 18, 2017, 9:00:58 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28943 – Description
initial v1 4 4 5 5 TemplateView.render_to_response() should call its ContextMixin.get_context_data() method automatically is because TemplateView inherits from both TemplateResponseMixin, and ContextMixin which provides the get_context_data() method. 6 7 Currently, the workaround is to call TemplateResponse.get(request, *args, **kwargs), but users should really be calling what they mean to do instead: super().render_to_response()