#28943: Unenforce manual get_context_data()
------------------------------------------------+------------------------
               Reporter:  James Pic             |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Generic views         |        Version:  2.0
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  1
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Currently, TemplateView inherits render_to_response(context) from
 TemplateResponseMixin which requires a context argument.

 Instead, TemplateView should have its own render_to_response(context=None)
 that would get a context by default from get_context_data().

 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28943>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.00b2107e25f1cca182e3ab778ad45c23%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to