Hi gst, > > Instead of > > class Hotel(Place): > ... > > I ended up with > > class Hotel(object): > place = models.OneToOneField(Place, primary_key=True) > > I used a OneToOneField instead of ForeignKey because there can only be one > hotel in a Place. > > > Just to verify, you're not actually inheriting from (object), right? You're using Hotel(models.Model), I hope?
-James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXYQN3%2BwFgm7U3BU17rm5Rw9x-Y7uQ4Whd8Hn%2BgkfjLgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.