djangosnippets.org: Latest snippets tagged with 'multipleinheritance'https://djangosnippets.org/tags/multipleinheritance/2008-04-12T06:18:53.493534-05:00Multiple inheritance of newforms and modelforms
2008-04-12T06:18:53.493534-05:00simonhttps://djangosnippets.org/snippets/703/<p>If you try to use multiple inheritance with a modelform (to mix in some fields from an already existing form class for example) you'll get the following rather terrifying error:</p>
<blockquote>
<p>"Error when calling the metaclass bases metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of …</p></blockquote>
Freely redistributable