I have the following HTML, CSS and JS code. However, when I use the search from the top right side and press enter. Flask only get "None" and what was typed in search.
This is the route for the search:
@app.route("/quick_search/", methods=("GET", "POST"))
@app.route("/quick_search/<property_id>")
def quick_search(property_id=None):
form = QuickSearch()
print "???", form.propert_name.data
and this form class:
from flask.ext.wtf import Form
from wtforms import SelectField, StringField, IntegerField, SelectMultipleField
class QuickSearch(Form):
propert_name = StringField()
Why I only get None
from form.propert_name.data
?