1<form>
2 <input type="hidden" name="form-name" value="form1">
3</form>
4
5<form>
6 <input type="hidden" name="form-name" value="form2">
7</form>
8
9def some_view():
10 form1 = SomeForm()
11 form2 = AnotherForm()
12 if request.method == 'POST':
13 form_name = request.form['form-name']
14 if form_name == 'form1':
15 form1.validate()
16 ...