Pakistan (pk)¶
Forms¶
Pakistani-specific Form helpers
-
class
localflavor.pk.forms.PKPhoneNumberField(max_length=None, min_length=None, *args, **kwargs)[source]¶ A form field that validates input as an Pakistani phone number.
Valid numbers have nine to eleven digits.
Models¶
-
class
localflavor.pk.models.PKPhoneNumberField(*args, **kwargs)[source]¶ A model field that checks that the value is a valid Pakistani phone number (nine to eleven digits).
-
description= <django.utils.functional.__proxy__ object>¶
-
-
class
localflavor.pk.models.PKPostCodeField(*args, **kwargs)[source]¶ A model field that forms represent as a
PKPostCodeFieldfield and stores the five-digit Pakistani postcode in the database.-
description= <django.utils.functional.__proxy__ object>¶
-
Data¶
-
localflavor.pk.pk_states.STATE_CHOICES= (('PK-JK', <django.utils.functional.__proxy__ object at 0x7f1e9edd9690>), ('PK-BA', <django.utils.functional.__proxy__ object at 0x7f1e9edd9750>), ('PK-TA', <django.utils.functional.__proxy__ object at 0x7f1e9edd97d0>), ('PK-GB', <django.utils.functional.__proxy__ object at 0x7f1e9edd9850>), ('PK-IS', <django.utils.functional.__proxy__ object at 0x7f1e9edd98d0>), ('PK-KP', <django.utils.functional.__proxy__ object at 0x7f1e9edd9950>), ('PK-PB', <django.utils.functional.__proxy__ object at 0x7f1e9edd99d0>), ('PK-SD', <django.utils.functional.__proxy__ object at 0x7f1e9edd9a50>))¶ An alphabetical list of states for use as choices in a formfield.