creating a combined form linked via foreign key??

2010-11-08 Thread sosurim kim
Sorry if this has been asked before, but how can I create a form that is a combination of two models linked through a foreign key? For example, let's say I have two models: # models.py class Myuser(User): bio = models.TextField() class AddressBook(models.Model): userid = models.ForeignKey(Cus

Re: creating a combined form linked via foreign key??

2010-11-08 Thread sosurim kim
Oops, I meant to say addressbook, not phonebook... sorry. # models.py class Myuser(User): bio = models.TextField() class AddressBook(models.Model): userid = models.ForeignKey(CustomUser, blank=True, null=True) address = models.CharField(max_length=50) city = models.CharField(max_length=50

Help!!: creating a combined form linked via foreign key??

2010-11-09 Thread sosurim kim
This message isn't going through for some reason... -- Forwarded message -- From: sosurim kim Date: Mon, Nov 8, 2010 at 1:55 PM Subject: Re: creating a combined form linked via foreign key?? To: django-users@googlegroups.com Oops, I meant to say addressbook, not phon