ModelFormMetaclass.__new__ is incompatible with metaclass mixins
|Reported by:||Christian Tanzer <tanzer@…>||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I wanted to define a subclass of ModelFormMetaclass that also inherits from a mixin. Because new has an additional parameter formfield_callback, the call of the mixin's new fails.
In addition, ModelFormMetaclass.new doesn't use super(...).new in all cases.
I'll attach a patch fixing this.
Change History (4)
Changed 8 years ago by Christian Tanzer <tanzer@…>
comment:2 Changed 8 years ago by mtredinnick
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
- Version changed from SVN to newforms-admin