ModelFormMetaclass.__new__ is incompatible with metaclass mixins
|Reported by:||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.