Simon Willison’s Weblog

Subscribe
Atom feed for multipleinheritance

1 item tagged “multipleinheritance”

2008

Multiple inheritance of newforms and modelforms. If you ever see “Error when calling the metaclass bases metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases” when trying multiple inheritance with newforms and modelforms, here’s a scary solution I found.

# 12th April 2008, 12:54 pm / django, inheritance, metaclasses, modelforms, multipleinheritance, newforms, python