#16074: Class-based views clash get_context_data
------------------------------------+-------------------------------
               Reporter:  emyller   |          Owner:  nobody
                   Type:  Bug       |         Status:  new
              Milestone:            |      Component:  Generic views
                Version:  1.3       |       Severity:  Normal
             Resolution:            |       Keywords:  cbv
           Triage Stage:  Accepted  |      Has patch:  0
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
------------------------------------+-------------------------------

Comment (by lukeplant):

 @emyller - I mean every CBV class that Django has (which needs it i.e.
 which can't call super at the moment because it is not sure there is a
 super), because those are the only ones we have control over. In theory,
 other people might have to apply the same fix to their mixins.  This is a
 basic problem with inheritance in Python, and not something we can fix in
 general.

 A base class for just this fix seems like overkill. Yes, it would reduce
 code duplication, but it would increase the number of layers, which can
 really make things harder to understand.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16074#comment:3>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to