Answer the question
In order to leave comments, you need to log in
How to fill default values in wtf?
I made a request to the database through Flask-sqlalchemy: n = DraftCur.query.filter_by(dc_id=dc_id)
And I got a number of fields.
There is a form form = DraftCurForm()
I can prescribe default values like this:
form.dc_amount.default = 100500
form.process()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question