You aren't calling the django.db.models.Model constructor on either of
your derived classes. When you write a derived class, be sure to call
the super class constructor:
class MyModel(Model):
def __init__(self, *args, **kwargs):
super(MyModel, self).__init__(*args, **kwargs)
Cheers
Tom
I'm sure the OP from June 2010 will be pleased that his question has
been answered so many times…
PS: To call the parent class(es) constuctor(s) correctly when using
python "new style" classes (ie: all Django classes and classes derived
from Django classes), you should use super(ClassName, self).__init__()
and not call the base class directly.