#17161: Call super in BaseForm.__init__
--------------------------+--------------------------------------
     Reporter:  reames@…  |                    Owner:  nobody
         Type:  Bug       |                   Status:  new
    Component:  Forms     |                  Version:  1.3
     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
--------------------------+--------------------------------------
Changes (by davidfstr):

 * needs_better_patch:   => 0
 * component:  Uncategorized => Forms
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 I believe if you reorder the superclasses, adding the call to super() is
 not necessary. For example:

 {{{
 class MyForm(FormMixin, forms.Form):
   field1 = forms.CharField()
 }}}

 I would normally add a mixin in this order anyway since I normally have
 the mixin override the superclass instead of inserting a mixin to be
 called by the superclass.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17161#comment:1>
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