Re: Django multiple Model Forms in template

2018-06-23 Thread martin . ma012500
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 m

Re: Django multiple Model Forms in template

2018-06-23 Thread alex eckert
This is likely not the answer you're looking for, but my two cents... I've never been successful in writing the templates for formsets on my own, as they tend to end up looking rather clunky. I've been using this