Re: Modelforms and class based views

2013-01-06 Thread Pedro J. Aramburu
https://docs.djangoproject.com/en/1.4/topics/forms/modelforms/#model-formsets El domingo, 6 de enero de 2013 11:46:40 UTC-3, Pedro J. Aramburu escribió: > > Have you tried merging the forms with formsets? > https://docs.djangoproject.com/en/1.4/topics/forms/formsets/ > > El viernes, 4 de enero de

Re: Modelforms and class based views

2013-01-06 Thread Pedro J. Aramburu
Have you tried merging the forms with formsets? https://docs.djangoproject.com/en/1.4/topics/forms/formsets/ El viernes, 4 de enero de 2013 13:51:41 UTC-3, Marco A Morales escribió: > > Hi everyone, > > I'm still wraping my head around class based views and I'm trying my first > project with

Re: Modelforms and class based views

2013-01-05 Thread nkryptic
Multiple forms with generic views are a problem - you can't really use the form processing ones as they expect a single form. But, say you want a view that has a Pet form and and Owner form class Owner(models.Model): name = models.CharField(max_length=100) email =

Modelforms and class based views

2013-01-04 Thread Marco A Morales
Hi everyone, I'm still wraping my head around class based views and I'm trying my first project with class based views. I'm having trouble deciding how to write a view that will display a two Modelforms, one having a foreign key over the other. I will need to do the .save(commit=False) part