Re: Generating a single form with OneToOneField

2009-10-04 Thread Tiago Samahá
Someone can help me? Thanks. On 2 out, 15:55, Tiago Samahá wrote: > Hello All, > > i'm trying generate a single form with two models. > > class Contact(models.Model): >     phone = models.CharField(max_length=8) >     email = models.CharField(max_length=50) >

Generating a single form with OneToOneField

2009-10-02 Thread Tiago Samahá
Hello All, i'm trying generate a single form with two models. class Contact(models.Model): phone = models.CharField(max_length=8) email = models.CharField(max_length=50) class Client(models.Model): name = models.CharField(max_length=50) type = models.CharField(max_length=10)