Saturday, June 23, 2018

Re: Django multiple Model Forms in template

Hi. I have changed views.py last line to this:

return render(request, 'assumptions.html', {'formset': formset,'model_names': model_names,'name': name})

As a result, it outputted more forms, however they do not save to model forms to database and raise
Validation Error ['ManagementForm data is missing or has been tampered with']

Any advise how to successfully save the model forms into database is highly appreciated.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9f212f97-0242-41bf-8609-7127876c6222%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment