#17381: TemplateView get method passes kwargs into context
-------------------------------+--------------------------------------
     Reporter:  ptone          |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Generic views  |                  Version:  SVN
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by anonymous):

 ptone posted in [https://code.djangoproject.com/ticket/17228#comment:4
 #17228] what I believe should have been the proper way for TemplateView to
 mimic the direct_to_template behavior.

 The current call to `get_context_data` in TemplateView breaks the pattern
 below which I believe is the only way to have multiple inheritance working
 properly especially now that the idea of having a`context_data` dictionary
 have been dismissed in [https://code.djangoproject.com/ticket/16074
 #16074].

 {{{
 def get_context_data(self, **kwargs):
     context = super(MyClass)(kwargs)
     context['foo'] = 'bar'
     return context
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17381#comment:5>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to