def edit_team():
    form = TeamForm(request.POST, obj=team)
if request.POST and form.validate():
    form.populate_obj(team)
return redirect('/teams')
return render('edit_team.html')
Disabled field is considered for validation in WTForms and Flask