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
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
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
3 matches
Mail list logo