Australia (au
)¶
Forms¶
Australian-specific Form helpers.
-
class
localflavor.au.forms.
AUBusinessNumberField
(*args, **kwargs)[source]¶ A form field that validates input as an Australian Business Number (ABN).
New in version 1.3.
Changed in version 1.4.
-
class
localflavor.au.forms.
AUCompanyNumberField
(*args, **kwargs)[source]¶ A form field that validates input as an Australian Company Number (ACN).
New in version 1.5.
-
class
localflavor.au.forms.
AUPhoneNumberField
(*args, **kwargs)[source]¶ A form field that validates input as an Australian phone number.
Valid numbers have ten digits.
-
class
localflavor.au.forms.
AUPostCodeField
(max_length=4, min_length=None, *args, **kwargs)[source]¶ Australian post code field.
Assumed to be 4 digits. Northern Territory 3-digit postcodes should have leading zero.
Models¶
-
class
localflavor.au.models.
AUBusinessNumberField
(*args, **kwargs)[source]¶ A model field that checks that the value is a valid Australian Business Number (ABN).
New in version 1.3.
-
description
= u'Australian Business Number'¶
-
validators
= [<localflavor.au.validators.AUBusinessNumberFieldValidator object at 0x376b390>, <django.core.validators.MaxLengthValidator object at 0x376bcd0>]¶
-
-
class
localflavor.au.models.
AUCompanyNumberField
(*args, **kwargs)[source]¶ A model field that checks that the value is a valid Australian Company Number (ACN).
New in version 1.5.
-
description
= u'Australian Company Number'¶
-
validators
= [<localflavor.au.validators.AUCompanyNumberFieldValidator object at 0x376b490>, <django.core.validators.MaxLengthValidator object at 0x376bd90>]¶
-
-
class
localflavor.au.models.
AUPhoneNumberField
(*args, **kwargs)[source]¶ A model field that checks that the value is a valid Australian phone number (ten digits).
-
description
= u'Australian Phone number'¶
-
-
class
localflavor.au.models.
AUPostCodeField
(*args, **kwargs)[source]¶ A model field that stores the four-digit Australian postcode in the database.
This field is represented by forms as a
AUPostCodeField
field.-
description
= u'Australian Postcode'¶
-
-
class
localflavor.au.models.
AUStateField
(*args, **kwargs)[source]¶ A model field that stores the three-letter Australian state abbreviation in the database.
It is represented with
STATE_CHOICES`
choices.-
description
= u'Australian State'¶
-
-
class
localflavor.au.models.
AUTaxFileNumberField
(*args, **kwargs)[source]¶ A model field that checks that the value is a valid Tax File Number (TFN).
A TFN is a number issued to a person by the Commissioner of Taxation and is used to verify client identity and establish their income levels. It is a eight or nine digit number without any embedded meaning.
New in version 1.4.
-
description
= u'Australian Tax File Number'¶
-
validators
= [<localflavor.au.validators.AUTaxFileNumberFieldValidator object at 0x376b5d0>, <django.core.validators.MaxLengthValidator object at 0x376be50>]¶
-
Data¶
-
localflavor.au.au_states.
STATE_CHOICES
= (('ACT', 'Australian Capital Territory'), ('NSW', 'New South Wales'), ('NT', 'Northern Territory'), ('QLD', 'Queensland'), ('SA', 'South Australia'), ('TAS', 'Tasmania'), ('VIC', 'Victoria'), ('WA', 'Western Australia'))¶ An alphabetical list of states for use as choices in a formfield.