Australia (au
)¶
Forms¶
Australian-specific Form helpers
-
class
localflavor.au.forms.
AUBusinessNumberField
(max_length=None, min_length=None, strip=True, *args, **kwargs)[source]¶ A form field that validates input as an Australian Business Number (ABN)
New in version 1.3.
-
class
localflavor.au.forms.
AUPhoneNumberField
(max_length=None, min_length=None, strip=True, *args, **kwargs)[source]¶ A form field that validates input as an Australian phone number.
Valid numbers have ten digits.
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
= 'Australian Business Number'¶
-
validators
= [<localflavor.au.validators.AUBusinessNumberFieldValidator object at 0x7f9971805a20>, <django.core.validators.MaxLengthValidator object at 0x7f99724177b8>]¶
-
-
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
= 'Australian Phone number'¶
-
-
class
localflavor.au.models.
AUPostCodeField
(*args, **kwargs)[source]¶ A model field that forms represent as a
AUPostCodeField
field and stores the four-digit Australian postcode in the database.-
description
= 'Australian Postcode'¶
-
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.