#13075: BaseForm __init__ doesn't super and so breaks MI Mixins
-------------------------------+--------------------------------------------
          Reporter:  gbauer    |         Owner:  nobody
            Status:  new       |     Milestone:        
         Component:  Forms     |       Version:  1.1   
        Resolution:            |      Keywords:  mixins
             Stage:  Accepted  |     Has_patch:  0     
        Needs_docs:  0         |   Needs_tests:  0     
Needs_better_patch:  0         |  
-------------------------------+--------------------------------------------
Comment (by mk):

 This is a bit harder than it looks at first sight. According to
 http://fuhm.net/super-harmful/ , every single argument should be passed
 on. However, this obviously won't work when there aren't any mixins
 around, just object, because object does not accept any arguments in
 __init__.

 On the other hand, standard subclassing of Form expects all arguments
 BaseForm itself accepts too.

 Depending on the mro, mixins/subclasses will have to accept either
 *args/**kwargs or nothing.

 I'm not sure how we should fix this issue.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13075#comment:2>
Django <http://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