class MagazineIssueForm(Form):
    title = TextField()
year = IntegerField('Year')
month = SelectField(choices=MONTHS)

def edit_issue():
    publication = get_something_from_db()
Python Flask WTForms: How can I disable a field dynamically in a view?