Sunday, January 6, 2013

Re: Modelforms and class based views

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 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 to save my first model and then be able to save the model with foreign key.

How would you guys do it? 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/L6_1LmB8JAEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate