wtform-address

Physical address fields (CountrySelectField, StateSelectField) for wtform


License
Apache-2.0
Install
pip install wtform-address==0.1.1

Documentation

Wtform address fields: CountrySelectField and StateSelectField

Fields that are helpful when dealing with physical addresses such as a CountrySelectField and a StateSelectField.

Install

pip install wtform_address

Usage

from wtforms import Form
from wtform_address import CountrySelectField, StateSelectField

class MyForm(Form):
    country = CountrySelectField(default="US")
    state = StateSelectField(default="US-CA")

Credits

Credits to @mekza for his initial gist.

License

License