South Africa (za)


South Africa-specific Form helpers

class, min_length=None, strip=True, *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, min_length=None, *args, **kwargs)[source]

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


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

Data = (('EC', 'Eastern Cape'), ('FS', 'Free State'), ('GP', 'Gauteng'), ('KN', 'KwaZulu-Natal'), ('LP', 'Limpopo'), ('MP', 'Mpumalanga'), ('NC', 'Northern Cape'), ('NW', 'North West'), ('WC', 'Western Cape'))

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