Given... class Place(models.Model): name = models.CharField(max_length=50)
class Restaurant(Place): serves_hot_dogs = models.BooleanField() ...it is trivial to create either a place or restaurant. But how do you take an instance that is already a place and create a restaurant from it? Is this possible, without first deleting the place? I though this would work: restaurant = Restaurant() place = Place.objects.get(id=1) restaurant.place = place restaurant.save() But this creates a new restaurant (and a new place) unrelated to the existing place. What am I missing? 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.