[Fixed]-Django Python Processing 2 Models in 1 form

1👍

Just do what you did for UserForm in Post def. I would send GebruikerForm and UserForm to display fields in the form and in the post initialize user form and Gebruikerform and check validation.

form = self.form_class(request.POST) and
Gform_class = Gebruikerform()
Gform = self.Gform_class(request.POST). 

I use TemplateView for everything and this is how i usually do.

Leave a comment