Austria (at)

AT-specific Form helpers

class localflavor.at.forms.ATSocialSecurityNumberField(required=True, widget=None, label=None, initial=None, help_text=None, 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', 'Burgenland'), ('KA', 'Carinthia'), ('NO', 'Lower Austria'), ('OO', 'Upper Austria'), ('SA', 'Salzburg'), ('ST', 'Styria'), ('TI', 'Tyrol'), ('VO', 'Vorarlberg'), ('WI', 'Vienna'))

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

Previous topic

Argentina (ar)

Next topic

Australia (au)

This Page