Skip to main content

Physical address fields (CountrySelectField, StateSelectField) for wtform

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wtform_address-0.1.1.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

wtform_address-0.1.1-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page