On Sat, May 3, 2014 at 9:07 AM, LaPerl wrote:
> Hi all,
>
> I have 5 different models all with relations with themselves. I want to
> use ModelForm to generate a form that will contain fields of all these
> models. I read and read, I tried different things to do this
Hi all,
I have 5 different models all with relations with themselves. I want to use
ModelForm to generate a form that will contain fields of all these models.
I read and read, I tried different things to do this (inheritance,
subclassing...) and then use the class based views to do CRUD with
That was a great help thanks. I also used the copy() method on the
request.POST dict and I could redirect to the same view. Cheers.
On Mar 24, 2009 3:43 PM, "Thomas Guettler" wrote:
Hi,
my guess: You need to redirect after POST.
if you give request.POST to the Form, it
Hi,
my guess: You need to redirect after POST.
if you give request.POST to the Form, it will overwrite the values
from the model with the values from request.POST. If you do a redirect
after POST, the value from the model will be displayed, since POST
is empty after the redirect.
BTW, I often
Hi. I'm quite new to Django so please excuse any ignorance.
I'm trying to change the value of a ModelForm attribute and execute
the same view with the altered attribute. I've read and read the
ModelForms docs but I can't grasp how to do this.
In the view the POST data comes back and I populate
5 matches
Mail list logo