Hi all, I have a quick question about editing instances of child models in the admin interface. I have a couple of models which derive from a (non- abstract) parent model, thusly:
class Contact(models.Model): first_name = models.CharField(...) last_name = models.CharField(...) # etc. class LabMember(Contact): hire_date = models.DateField(...) # etc. class Collaborator(Contact): institution = models.CharField(...) # etc. I have another model with a ForeignKey field to Contact, because I would like to be able to associate either LabMembers or Collaborators with that field. What I would l like to do is be able to add a Contact in the admin interface (using the standard popup form) when creating an instance of that model, and then later associate a new LabMember or Collaborator instance with the previously-added Contact (either by changing the Contact record, or by adding a new LabMember and having the option to select an existing Contact). I realize this may be a use case for an explicit OneToOne field instead of inheritance, though I do like having the Contact fields displayed inline when I add a new LabMember. So yes, I want to have my cake and eat it too...but if I can only do one, suggestions for this use case would be greatly appreciated! Thanks, Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---