I can't understand exactly how to handle several forms submit for this particular case. I am using Flask and wtforms, let me give an example:
views.py
from forms import EditForm
@app.route('/forms')
def edit(self):
form = EditForm(request.form, obj=some_obj)
form_1 = EditForm(request.form_1, obj=some_other_ocj)
if request.method == 'POST' and form.validate():
form.save()
if request.method == 'POST' and form_1.validate():
form_1.save()
forms.py
from wtforms import *
class EditForm(Form):
language = StringField()
text = StringField()
This is a very limited example, but the first thing that errors is that the request object on the view does not have a form_1 attribute.