Changes between Initial Version and Version 1 of Ticket #27517
- Timestamp:
- Nov 21, 2016, 5:50:32 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27517 – Description
initial v1 1 1 When create class based view which contain `TemplateResponseMixin`, 2 2 3 ``` 3 {{{ 4 4 class MyTemplateView(TemplateResponseMixin, ContextMixin, View): 5 5 def get(self, request, *args, **kwargs): 6 6 context = self.get_context_data(**kwargs) 7 7 return self.render_to_response(context, charset=kwargs.get('charset', 'utf-8')) 8 ``` 8 }}} 9 9 10 10 `TemplateResponseMixin.render_to_response` call `SimpleTemplateResponse. __init__` with a `charset` keyword argument.