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
PKPostCodeField
field 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 0x7f9540b1dcd0>), ('PK-BA', <django.utils.functional.__proxy__ object at 0x7f9540b1dd90>), ('PK-TA', <django.utils.functional.__proxy__ object at 0x7f9540b1de10>), ('PK-GB', <django.utils.functional.__proxy__ object at 0x7f9540b1de90>), ('PK-IS', <django.utils.functional.__proxy__ object at 0x7f9540b1df10>), ('PK-KP', <django.utils.functional.__proxy__ object at 0x7f9540b1df90>), ('PK-PB', <django.utils.functional.__proxy__ object at 0x7f9540b25050>), ('PK-SD', <django.utils.functional.__proxy__ object at 0x7f9540b250d0>))¶ An alphabetical list of states for use as choices in a formfield.