I have the following code:
class ReconForm(Form):
compressedFilePath = StringField('Compressed File Path', [validators.Required()] )
and I instantiate it like this:
form = ReconForm()
form.compressedFilePath.default = 'hey'
It does nothing. It used to set the default value to hey but then it stopped and I have no idea why.
If I print form.compressedFilePath.default then it prints the correct value. If I set a default in the field constructor the template renders the correct value. Otherwise it just does nothing and it's driving me crazy.
What am I doing wrong?