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