Hello users, I cannot realize the difference between the different ways of extending a model. Suppose we have Place and Restaurant Models (a Restaurant is an extension of a Place). I know 3 different ways of define the data model:
1. Multi-table inheritance: class Place(models.Model): ... class Restaurant(Place): ... 2. OneToOne relationship: class Place(models.Model): ... class Restaurant(models.Model): place = models.OneToOneField(Place, primary_key=True) 3. ForeignKey unique: class Place(models.Model): ... class Restaurant(models.Model): place = models.ForeignKey(Place, unique=True) I can't realize the difference between them nor advantages/ disadvantages of each case. Is there a big difference? Can someone clarify it please? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.