Indonesia (id)

Forms

ID-specific Form helpers

class localflavor.id_.forms.IDLicensePlateField(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]

An Indonesian vehicle license plate field.

http://id.wikipedia.org/wiki/Tanda_Nomor_Kendaraan_Bermotor

Plus: “B 12345 12”

class localflavor.id_.forms.IDLicensePlatePrefixSelect(attrs=None)[source]

A Select widget that uses a list of vehicle license plate prefix code of Indonesia as its choices.

http://id.wikipedia.org/wiki/Tanda_Nomor_Kendaraan_Bermotor

class localflavor.id_.forms.IDNationalIdentityNumberField(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]

An Indonesian national identity number (NIK/KTP#) field.

http://id.wikipedia.org/wiki/Nomor_Induk_Kependudukan

xx.xxxx.ddmmyy.xxxx - 16 digits (excl. dots)

class localflavor.id_.forms.IDPhoneNumberField(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]

An Indonesian telephone number field.

http://id.wikipedia.org/wiki/Daftar_kode_telepon_di_Indonesia

class localflavor.id_.forms.IDPostCodeField(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]

An Indonesian post code field.

http://id.wikipedia.org/wiki/Kode_pos

class localflavor.id_.forms.IDProvinceSelect(attrs=None)[source]

A Select widget that uses a list of provinces of Indonesia as its choices.

Data

localflavor.id_.id_choices.PROVINCE_CHOICES = (('ACE', <django.utils.functional.__proxy__ object at 0x7f953fbe5b90>), ('BLI', <django.utils.functional.__proxy__ object at 0x7f953fbe5fd0>), ('BTN', <django.utils.functional.__proxy__ object at 0x7f953fbe5110>), ('BKL', <django.utils.functional.__proxy__ object at 0x7f953fbe5f10>), ('DIY', <django.utils.functional.__proxy__ object at 0x7f953fbe59d0>), ('JKT', <django.utils.functional.__proxy__ object at 0x7f953fbe5cd0>), ('GOR', <django.utils.functional.__proxy__ object at 0x7f953fbe5490>), ('JMB', <django.utils.functional.__proxy__ object at 0x7f953fbe5450>), ('JBR', <django.utils.functional.__proxy__ object at 0x7f953fbe5f50>), ('JTG', <django.utils.functional.__proxy__ object at 0x7f953fbe57d0>), ('JTM', <django.utils.functional.__proxy__ object at 0x7f953fbe5690>), ('KBR', <django.utils.functional.__proxy__ object at 0x7f953fbe5950>), ('KSL', <django.utils.functional.__proxy__ object at 0x7f953fbe5550>), ('KTG', <django.utils.functional.__proxy__ object at 0x7f953fbe5e10>), ('KTM', <django.utils.functional.__proxy__ object at 0x7f953f6686d0>), ('BBL', <django.utils.functional.__proxy__ object at 0x7f953f668d90>), ('KRI', <django.utils.functional.__proxy__ object at 0x7f953f668650>), ('LPG', <django.utils.functional.__proxy__ object at 0x7f953f668e50>), ('MLK', <django.utils.functional.__proxy__ object at 0x7f953fdbff90>), ('MUT', <django.utils.functional.__proxy__ object at 0x7f953fdbf050>), ('NTB', <django.utils.functional.__proxy__ object at 0x7f953fdbf090>), ('NTT', <django.utils.functional.__proxy__ object at 0x7f953fdbf110>), ('PPA', <django.utils.functional.__proxy__ object at 0x7f953fdbf2d0>), ('PPB', <django.utils.functional.__proxy__ object at 0x7f953fdbf4d0>), ('RIU', <django.utils.functional.__proxy__ object at 0x7f953fdbf350>), ('SLB', <django.utils.functional.__proxy__ object at 0x7f953fdbfa10>), ('SLS', <django.utils.functional.__proxy__ object at 0x7f953fdbfd10>), ('SLT', <django.utils.functional.__proxy__ object at 0x7f953fdbfb90>), ('SLR', <django.utils.functional.__proxy__ object at 0x7f953fdbf490>), ('SLU', <django.utils.functional.__proxy__ object at 0x7f953fdbfc50>), ('SMB', <django.utils.functional.__proxy__ object at 0x7f953fa2aad0>), ('SMS', <django.utils.functional.__proxy__ object at 0x7f953fa2a050>), ('SMU', <django.utils.functional.__proxy__ object at 0x7f953fa2a410>))

Indonesia does not have an official Province code standard. I decided to use unambiguous and consistent (some are common) 3-letter codes. http://id.wikipedia.org/wiki/Daftar_provinsi_Indonesia

localflavor.id_.id_choices.LICENSE_PLATE_PREFIX_CHOICES = (('A', <django.utils.functional.__proxy__ object at 0x7f953fa2a850>), ('AA', <django.utils.functional.__proxy__ object at 0x7f953fa2a250>), ('AB', <django.utils.functional.__proxy__ object at 0x7f953fa2a6d0>), ('AD', <django.utils.functional.__proxy__ object at 0x7f953fa2a750>), ('AE', <django.utils.functional.__proxy__ object at 0x7f953fa2a790>), ('AG', <django.utils.functional.__proxy__ object at 0x7f953fa2ab50>), ('B', <django.utils.functional.__proxy__ object at 0x7f953fa2a090>), ('BA', <django.utils.functional.__proxy__ object at 0x7f953fa2a150>), ('BB', <django.utils.functional.__proxy__ object at 0x7f953fa2a350>), ('BD', <django.utils.functional.__proxy__ object at 0x7f953fa2a950>), ('BE', <django.utils.functional.__proxy__ object at 0x7f953fa2af90>), ('BG', <django.utils.functional.__proxy__ object at 0x7f953fa2a2d0>), ('BH', <django.utils.functional.__proxy__ object at 0x7f953fa2a9d0>), ('BK', <django.utils.functional.__proxy__ object at 0x7f953fa2a390>), ('BL', <django.utils.functional.__proxy__ object at 0x7f953fa2afd0>), ('BM', <django.utils.functional.__proxy__ object at 0x7f953fa2a910>), ('BN', <django.utils.functional.__proxy__ object at 0x7f953fe6d110>), ('BP', <django.utils.functional.__proxy__ object at 0x7f953fe6d4d0>), ('CC', <django.utils.functional.__proxy__ object at 0x7f953fe6dfd0>), ('CD', <django.utils.functional.__proxy__ object at 0x7f953fe6d510>), ('D', <django.utils.functional.__proxy__ object at 0x7f953fe6d5d0>), ('DA', <django.utils.functional.__proxy__ object at 0x7f953fe6d850>), ('DB', <django.utils.functional.__proxy__ object at 0x7f953fe6d590>), ('DC', <django.utils.functional.__proxy__ object at 0x7f953fe6db90>), ('DD', <django.utils.functional.__proxy__ object at 0x7f953fe6dc90>), ('DE', <django.utils.functional.__proxy__ object at 0x7f953fe6dbd0>), ('DG', <django.utils.functional.__proxy__ object at 0x7f953fe6d450>), ('DH', <django.utils.functional.__proxy__ object at 0x7f953fe6d790>), ('DK', <django.utils.functional.__proxy__ object at 0x7f953fe6d410>), ('DL', <django.utils.functional.__proxy__ object at 0x7f953fe6d950>), ('DM', <django.utils.functional.__proxy__ object at 0x7f953fe6d090>), ('DN', <django.utils.functional.__proxy__ object at 0x7f953fe6d250>), ('DR', <django.utils.functional.__proxy__ object at 0x7f953fe6df50>), ('DS', <django.utils.functional.__proxy__ object at 0x7f953fe6dcd0>), ('DT', <django.utils.functional.__proxy__ object at 0x7f953fe6d650>), ('E', <django.utils.functional.__proxy__ object at 0x7f953fe6ded0>), ('EA', <django.utils.functional.__proxy__ object at 0x7f953fe6d550>), ('EB', <django.utils.functional.__proxy__ object at 0x7f953fe6d1d0>), ('ED', <django.utils.functional.__proxy__ object at 0x7f953fe6d290>), ('F', <django.utils.functional.__proxy__ object at 0x7f953fe6d7d0>), ('G', <django.utils.functional.__proxy__ object at 0x7f953fe6dc50>), ('H', <django.utils.functional.__proxy__ object at 0x7f953fe6d490>), ('K', <django.utils.functional.__proxy__ object at 0x7f953fe6d810>), ('KB', <django.utils.functional.__proxy__ object at 0x7f953fe6df10>), ('KH', <django.utils.functional.__proxy__ object at 0x7f953fe6df90>), ('KT', <django.utils.functional.__proxy__ object at 0x7f953fe6d050>), ('L', <django.utils.functional.__proxy__ object at 0x7f953fbc3350>), ('M', <django.utils.functional.__proxy__ object at 0x7f953fbc37d0>), ('N', <django.utils.functional.__proxy__ object at 0x7f953fbc3ed0>), ('P', <django.utils.functional.__proxy__ object at 0x7f953fbc3f50>), ('R', <django.utils.functional.__proxy__ object at 0x7f953fbc3a10>), ('RI', <django.utils.functional.__proxy__ object at 0x7f953fbc33d0>), ('S', <django.utils.functional.__proxy__ object at 0x7f953fbc3210>), ('T', <django.utils.functional.__proxy__ object at 0x7f953fbc3f10>), ('W', <django.utils.functional.__proxy__ object at 0x7f953f6ea9d0>), ('Z', <django.utils.functional.__proxy__ object at 0x7f953f6eac50>))

License plate prefixes