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 0x7f1e9ddde6d0>), ('KA', <django.utils.functional.__proxy__ object at 0x7f1e9ddde710>), ('NO', <django.utils.functional.__proxy__ object at 0x7f1e9ddde590>), ('OO', <django.utils.functional.__proxy__ object at 0x7f1e9ddde690>), ('SA', <django.utils.functional.__proxy__ object at 0x7f1e9ddde610>), ('ST', <django.utils.functional.__proxy__ object at 0x7f1e9ddde5d0>), ('TI', <django.utils.functional.__proxy__ object at 0x7f1e9ddde550>), ('VO', <django.utils.functional.__proxy__ object at 0x7f1e9de2d550>), ('WI', <django.utils.functional.__proxy__ object at 0x7f1e9de2d5d0>))

A list of Austrian states according to https://en.wikipedia.org/wiki/States_of_Austria