Hi all, I have a question about complex form. There are my models: class Country(models.Model): name = models.CharField(max_length=30) class Author(models.Model): name = models.CharField(max_length=30) age = models.IntegerField() email = models.EmailField() country = models.ForeignKey(Country) class Book(models.Model): title = models.CharField(max_length=100) author = models.ForeignKey(Author) price = models.FloatField() publication_date = models.DateField() I want to display a page like this: display a author input form on top of the page, display a book input form on bottom of the page. Validations: When the author's name is 'mbs', the book's price must greater than 12. When the author's country is 'japan', the book's publication_date must be '2010-6-30' Now what i do is: a form holds all fields of Author and Book, but i found it is redundant when set values Is there a convenient and Pythonnic way to achieve this?
Thanks -- 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.