South Africa (za)

Forms

South Africa-specific Form helpers

class localflavor.za.forms.ZAIDField(max_length=None, min_length=None, *args, **kwargs)[source]

A form field for South African ID numbers – the checksum is validated using the Luhn checksum, and uses a simlistic (read: not entirely accurate) check for the birthdate

class localflavor.za.forms.ZAPostCodeField(max_length=None, min_length=None, *args, **kwargs)[source]

A form field that validates input as a South African postcode. Valid postcodes must have four digits.

class localflavor.za.forms.ZAProvinceSelect(attrs=None)[source]

A Select widget that uses a list of South African Provinces as its choices.

Data

localflavor.za.za_provinces.PROVINCE_CHOICES = (('EC', <django.utils.functional.__proxy__ object at 0x7f1e9cd131d0>), ('FS', <django.utils.functional.__proxy__ object at 0x7f1e9cd13950>), ('GP', <django.utils.functional.__proxy__ object at 0x7f1e9cd137d0>), ('KN', <django.utils.functional.__proxy__ object at 0x7f1e9cd13110>), ('LP', <django.utils.functional.__proxy__ object at 0x7f1e9cd13710>), ('MP', <django.utils.functional.__proxy__ object at 0x7f1e9cd13090>), ('NC', <django.utils.functional.__proxy__ object at 0x7f1e9cd13810>), ('NW', <django.utils.functional.__proxy__ object at 0x7f1e9cd13fd0>), ('WC', <django.utils.functional.__proxy__ object at 0x7f1e9cd13f50>))

A list of South African provinces as choices in a formfield.