Re: object and related object on one form (newforms)

2007-10-29 Thread Rob Slotboom
Hi Thomas, Thank you. I managed to get 2 forms in a view but I dont know how to provide some 'default' data to some fields in the related form. I'll give you some code: class Infocard(models.Model): from django.conf import settings content_type = models.ForeignKey(ContentType, limit_choic

Re: object and related object on one form (newforms)

2007-10-29 Thread Thomas Guettler
Am Sonntag, 28. Oktober 2007 17:29 schrieb Rob Slotboom: > Can someone please explain to me how to create a form which provides > not only the fields for the object but also the fiels for a related > object (foreign key) and the best method to validate and save the > data? Hi, with newforms, you

object and related object on one form (newforms)

2007-10-28 Thread Rob Slotboom
Can someone please explain to me how to create a form which provides not only the fields for the object but also the fiels for a related object (foreign key) and the best method to validate and save the data? Thanks in advance, Rob --~--~-~--~~~---~--~~ You rece