On Tue, 2008-04-15 at 18:33 -0700, Jon wrote: > I wanted to share some fields and functionality in several tables > without having to recode all of the field definitions in each table. > Obviously, this is an inheritance problem. So I did what I figured > was the logical thing: > > class MyModel (models.Model): > date_created = models.DateTimeField(auto_now_add=True,blank=True) > date_updated = models.DateTimeField(auto_now=True,blank=True) > > class Poll(MyModel): > <poll fields munched...> > > class Choice(MyModel): > <choice fields munched...>
Are you using trunk or the queryset-refactor branch. If you're using trunk, stop trying to use model inheritance. There are all sorts of subtle problems (the obvious one being the wrong model manager being used, but there are others as well). There's no workaround that doesn't make life difficult, either. Queryset-refactor has fixed model inheritance, so you can either switch to using that or wait a week or so until it's merged into trunk. Regards, Malcolm -- Always try to be modest and be proud of it! http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

