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.
-
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
Data¶
-
localflavor.id_.id_choices.PROVINCE_CHOICES= (('ACE', <django.utils.functional.__proxy__ object at 0x7f1e9d27e6d0>), ('BLI', <django.utils.functional.__proxy__ object at 0x7f1e9d27e710>), ('BTN', <django.utils.functional.__proxy__ object at 0x7f1e9d27e750>), ('BKL', <django.utils.functional.__proxy__ object at 0x7f1e9d27e790>), ('DIY', <django.utils.functional.__proxy__ object at 0x7f1e9d27e7d0>), ('JKT', <django.utils.functional.__proxy__ object at 0x7f1e9d27e810>), ('GOR', <django.utils.functional.__proxy__ object at 0x7f1e9d27e850>), ('JMB', <django.utils.functional.__proxy__ object at 0x7f1e9d27e890>), ('JBR', <django.utils.functional.__proxy__ object at 0x7f1e9d27e8d0>), ('JTG', <django.utils.functional.__proxy__ object at 0x7f1e9d27e910>), ('JTM', <django.utils.functional.__proxy__ object at 0x7f1e9d27e950>), ('KBR', <django.utils.functional.__proxy__ object at 0x7f1e9d27e990>), ('KSL', <django.utils.functional.__proxy__ object at 0x7f1e9d27ea10>), ('KTG', <django.utils.functional.__proxy__ object at 0x7f1e9d27ea90>), ('KTM', <django.utils.functional.__proxy__ object at 0x7f1e9d27eb10>), ('BBL', <django.utils.functional.__proxy__ object at 0x7f1e9d27eb90>), ('KRI', <django.utils.functional.__proxy__ object at 0x7f1e9d27ec10>), ('LPG', <django.utils.functional.__proxy__ object at 0x7f1e9d27ec90>), ('MLK', <django.utils.functional.__proxy__ object at 0x7f1e9d27ed10>), ('MUT', <django.utils.functional.__proxy__ object at 0x7f1e9d27ed90>), ('NTB', <django.utils.functional.__proxy__ object at 0x7f1e9d27ee10>), ('NTT', <django.utils.functional.__proxy__ object at 0x7f1e9d27ee90>), ('PPA', <django.utils.functional.__proxy__ object at 0x7f1e9d27ef10>), ('PPB', <django.utils.functional.__proxy__ object at 0x7f1e9d27ef90>), ('RIU', <django.utils.functional.__proxy__ object at 0x7f1e9d28e050>), ('SLB', <django.utils.functional.__proxy__ object at 0x7f1e9d28e0d0>), ('SLS', <django.utils.functional.__proxy__ object at 0x7f1e9d28e150>), ('SLT', <django.utils.functional.__proxy__ object at 0x7f1e9d28e1d0>), ('SLR', <django.utils.functional.__proxy__ object at 0x7f1e9d28e250>), ('SLU', <django.utils.functional.__proxy__ object at 0x7f1e9d28e2d0>), ('SMB', <django.utils.functional.__proxy__ object at 0x7f1e9d28e350>), ('SMS', <django.utils.functional.__proxy__ object at 0x7f1e9d28e3d0>), ('SMU', <django.utils.functional.__proxy__ object at 0x7f1e9d28e450>))¶ 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 0x7f1e9d28e4d0>), ('AA', <django.utils.functional.__proxy__ object at 0x7f1e9d28e550>), ('AB', <django.utils.functional.__proxy__ object at 0x7f1e9d28e5d0>), ('AD', <django.utils.functional.__proxy__ object at 0x7f1e9d28e650>), ('AE', <django.utils.functional.__proxy__ object at 0x7f1e9d28e6d0>), ('AG', <django.utils.functional.__proxy__ object at 0x7f1e9d28e750>), ('B', <django.utils.functional.__proxy__ object at 0x7f1e9d28e7d0>), ('BA', <django.utils.functional.__proxy__ object at 0x7f1e9d28e850>), ('BB', <django.utils.functional.__proxy__ object at 0x7f1e9d28e8d0>), ('BD', <django.utils.functional.__proxy__ object at 0x7f1e9d28e950>), ('BE', <django.utils.functional.__proxy__ object at 0x7f1e9d28e9d0>), ('BG', <django.utils.functional.__proxy__ object at 0x7f1e9d28ea50>), ('BH', <django.utils.functional.__proxy__ object at 0x7f1e9d28ead0>), ('BK', <django.utils.functional.__proxy__ object at 0x7f1e9d28eb50>), ('BL', <django.utils.functional.__proxy__ object at 0x7f1e9d28ebd0>), ('BM', <django.utils.functional.__proxy__ object at 0x7f1e9d28ec50>), ('BN', <django.utils.functional.__proxy__ object at 0x7f1e9d28ecd0>), ('BP', <django.utils.functional.__proxy__ object at 0x7f1e9d28ed50>), ('CC', <django.utils.functional.__proxy__ object at 0x7f1e9d28edd0>), ('CD', <django.utils.functional.__proxy__ object at 0x7f1e9d28ee50>), ('D', <django.utils.functional.__proxy__ object at 0x7f1e9d28eed0>), ('DA', <django.utils.functional.__proxy__ object at 0x7f1e9d28ef50>), ('DB', <django.utils.functional.__proxy__ object at 0x7f1e9d28efd0>), ('DC', <django.utils.functional.__proxy__ object at 0x7f1e9d293090>), ('DD', <django.utils.functional.__proxy__ object at 0x7f1e9d293110>), ('DE', <django.utils.functional.__proxy__ object at 0x7f1e9d293190>), ('DG', <django.utils.functional.__proxy__ object at 0x7f1e9d293210>), ('DH', <django.utils.functional.__proxy__ object at 0x7f1e9d293290>), ('DK', <django.utils.functional.__proxy__ object at 0x7f1e9d293310>), ('DL', <django.utils.functional.__proxy__ object at 0x7f1e9d293390>), ('DM', <django.utils.functional.__proxy__ object at 0x7f1e9d293410>), ('DN', <django.utils.functional.__proxy__ object at 0x7f1e9d293490>), ('DR', <django.utils.functional.__proxy__ object at 0x7f1e9d293510>), ('DS', <django.utils.functional.__proxy__ object at 0x7f1e9d293590>), ('DT', <django.utils.functional.__proxy__ object at 0x7f1e9d293610>), ('E', <django.utils.functional.__proxy__ object at 0x7f1e9d293690>), ('EA', <django.utils.functional.__proxy__ object at 0x7f1e9d293710>), ('EB', <django.utils.functional.__proxy__ object at 0x7f1e9d293790>), ('ED', <django.utils.functional.__proxy__ object at 0x7f1e9d293810>), ('F', <django.utils.functional.__proxy__ object at 0x7f1e9d293890>), ('G', <django.utils.functional.__proxy__ object at 0x7f1e9d293910>), ('H', <django.utils.functional.__proxy__ object at 0x7f1e9d293990>), ('K', <django.utils.functional.__proxy__ object at 0x7f1e9d293a10>), ('KB', <django.utils.functional.__proxy__ object at 0x7f1e9d293a90>), ('KH', <django.utils.functional.__proxy__ object at 0x7f1e9d293b10>), ('KT', <django.utils.functional.__proxy__ object at 0x7f1e9d293b90>), ('L', <django.utils.functional.__proxy__ object at 0x7f1e9d293c10>), ('M', <django.utils.functional.__proxy__ object at 0x7f1e9d293c90>), ('N', <django.utils.functional.__proxy__ object at 0x7f1e9d293d10>), ('P', <django.utils.functional.__proxy__ object at 0x7f1e9d293d90>), ('R', <django.utils.functional.__proxy__ object at 0x7f1e9d293e10>), ('RI', <django.utils.functional.__proxy__ object at 0x7f1e9d293e90>), ('S', <django.utils.functional.__proxy__ object at 0x7f1e9d293f10>), ('T', <django.utils.functional.__proxy__ object at 0x7f1e9d293f90>), ('W', <django.utils.functional.__proxy__ object at 0x7f1e9d299050>), ('Z', <django.utils.functional.__proxy__ object at 0x7f1e9d2990d0>))¶ License plate prefixes