Opened 16 years ago

Closed 16 years ago

#8030 closed (fixed)

BaseModelForm does not use super()

Reported by: glenjamin@… Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As seen in:

http://code.djangoproject.com/browser/django/trunk/django/forms/models.py#L262

This somewhat restricts what can be done with multiple inheritance on form objects, which imo would be the most effective way of adding custom form display methods and such to forms.

This can be worked around by simply ensuring that the mixin class comes before the form classes, however there isn't really any reason that this cannot be fixed.

Change History (1)

comment:1 by Luke Plant, 16 years ago

Resolution: fixed
Status: newclosed

(In [8169]) Fixed #8030 - use super() in BaseModelForm

Note: See TracTickets for help on using tickets.
Back to Top