I\'m enabling a function that can edit an entity. I want to populate the form with the variables from the datastore. How can I do it? My code doesn\'t populate the form:
You need to pass your object via the form's second argument, "obj":
editAdForm = AdForm(obj=ad)
Outlined in the documentation crash course here: http://wtforms.simplecodes.com/docs/dev/crash_course.html#editing-existing-objects