Austria (at
)¶
AT-specific Form helpers
-
class
localflavor.at.forms.
ATSocialSecurityNumberField
(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]¶ Austrian Social Security numbers are composed of a 4 digits and 6 digits field. The latter represents in most cases the person’s birthdate while the first 4 digits represent a 3-digits counter and a one-digit checksum.
The 6-digits field can also differ from the person’s birthdate if the 3-digits counter suffered an overflow.
This code is based on information available on http://de.wikipedia.org/wiki/Sozialversicherungsnummer#.C3.96sterreich
-
class
localflavor.at.forms.
ATStateSelect
(attrs=None)[source]¶ A
Select
widget that uses a list of AT states as its choices.
-
class
localflavor.at.forms.
ATZipCodeField
(max_length=None, min_length=None, *args, **kwargs)[source]¶ A form field that validates its input is an Austrian postcode.
Accepts 4 digits (first digit must be greater than 0).
-
localflavor.at.at_states.
STATE_CHOICES
= (('BL', <django.utils.functional.__proxy__ object at 0x7f953fb6a590>), ('KA', <django.utils.functional.__proxy__ object at 0x7f953fb6a5d0>), ('NO', <django.utils.functional.__proxy__ object at 0x7f953fb6a610>), ('OO', <django.utils.functional.__proxy__ object at 0x7f953fb6a650>), ('SA', <django.utils.functional.__proxy__ object at 0x7f953fb6a690>), ('ST', <django.utils.functional.__proxy__ object at 0x7f953fb6a6d0>), ('TI', <django.utils.functional.__proxy__ object at 0x7f953fb6a750>), ('VO', <django.utils.functional.__proxy__ object at 0x7f953fb6a7d0>), ('WI', <django.utils.functional.__proxy__ object at 0x7f953fb6a850>))¶ A list of Austrian states according to https://en.wikipedia.org/wiki/States_of_Austria