91
97
.. _The Netherlands: `The Netherlands (nl)`_
92
98
.. _Iceland: `Iceland (is\_)`_
93
99
.. _India: `India (in\_)`_
100
.. _Indonesia: `Indonesia (id)`_
101
.. _Ireland: `Ireland (ie)`_
94
102
.. _Italy: `Italy (it)`_
95
103
.. _Japan: `Japan (jp)`_
104
.. _Kuwait: `Kuwait (kw)`_
96
105
.. _Mexico: `Mexico (mx)`_
97
106
.. _Norway: `Norway (no)`_
98
107
.. _Peru: `Peru (pe)`_
99
108
.. _Poland: `Poland (pl)`_
109
.. _Portugal: `Portugal (pt)`_
100
110
.. _Romania: `Romania (ro)`_
101
111
.. _Slovakia: `Slovakia (sk)`_
102
112
.. _South Africa: `South Africa (za)`_
103
113
.. _Spain: `Spain (es)`_
114
.. _Sweden: `Sweden (se)`_
104
115
.. _Switzerland: `Switzerland (ch)`_
105
116
.. _United Kingdom: `United Kingdom (uk)`_
106
117
.. _United States of America: `United States of America (us)`_
118
.. _Uruguay: `Uruguay (uy)`_
167
179
.. class:: at.forms.ATStateSelect
169
A ``Select`` widget that uses a list of Austrian states as its choices.
181
A ``Select`` widget that uses a list of Austrian states as its choices.
171
183
.. class:: at.forms.ATSocialSecurityNumberField
367
379
A ``Select`` widget that uses a list of Indian states/territories as its
385
.. class:: ie.forms.IECountySelect
387
A ``Select`` widget that uses a list of Irish Counties as its choices.
392
.. class:: id.forms.IDPostCodeField
394
A form field that validates input as an Indonesian post code field.
396
.. class:: id.forms.IDProvinceSelect
398
A ``Select`` widget that uses a list of Indonesian provinces as its choices.
400
.. class:: id.forms.IDPhoneNumberField
402
A form field that validates input as an Indonesian telephone number.
404
.. class:: id.forms.IDLicensePlatePrefixSelect
406
A ``Select`` widget that uses a list of Indonesian license plate
407
prefix code as its choices.
409
.. class:: id.forms.IDLicensePlateField
411
A form field that validates input as an Indonesian vehicle license plate.
413
.. class:: id.forms.IDNationalIdentityNumberField
415
A form field that validates input as an Indonesian national identity
416
number (`NIK`_/KTP). The output will be in the format of
417
'XX.XXXX.DDMMYY.XXXX'. Dots or spaces can be used in the input to break
420
.. _NIK: http://en.wikipedia.org/wiki/Indonesian_identity_card
407
459
A ``Select`` widget that uses a list of Japanese prefectures as its choices.
464
.. class:: kw.forms.KWCivilIDNumberField
466
A form field that validates input as a Kuwaiti Civil ID number. A valid
467
Civil ID number must obey the following rules:
469
* The number consist of 12 digits.
470
* The birthdate of the person is a valid date.
471
* The calculated checksum equals to the last digit of the Civil ID.
439
.. class:: pt.forms.PEDNIField
503
.. class:: pe.forms.PEDNIField
441
505
A form field that validates input as a DNI (Peruvian national identity)
444
.. class:: pt.forms.PERUCField
508
.. class:: pe.forms.PERUCField
446
510
A form field that validates input as an RUC (Registro Unico de
447
511
Contribuyentes) number. Valid RUC numbers have 11 digits.
449
.. class:: pt.forms.PEDepartmentSelect
513
.. class:: pe.forms.PEDepartmentSelect
451
515
A ``Select`` widget that uses a list of Peruvian Departments as its choices.
456
.. class:: pl.forms.PLNationalIdentificationNumberField
520
.. class:: pl.forms.PLPESELField
458
522
A form field that validates input as a Polish national identification number
461
525
.. _PESEL: http://en.wikipedia.org/wiki/PESEL
463
.. class:: pl.forms.PLNationalBusinessRegisterField
527
.. class:: pl.forms.PLREGONField
465
529
A form field that validates input as a Polish National Official Business
466
530
Register Number (REGON_), having either seven or nine digits. The checksum
474
538
A form field that validates input as a Polish postal code. The valid format
475
539
is XX-XXX, where X is a digit.
477
.. class:: pl.forms.PLTaxNumberField
541
.. class:: pl.forms.PLNIPField
479
543
A form field that validates input as a Polish Tax Number (NIP). Valid
480
544
formats are XXX-XXX-XX-XX or XX-XX-XXX-XXX. The checksum algorithm used
481
545
for NIPs is documented at http://wipos.p.lodz.pl/zylla/ut/nip-rego.html.
483
.. class:: pl.forms.PLAdministrativeUnitSelect
547
.. class:: pl.forms.PLCountySelect
485
549
A ``Select`` widget that uses a list of Polish administrative units as its
488
.. class:: pl.forms.PLVoivodeshipSelect
552
.. class:: pl.forms.PLProvinceSelect
490
554
A ``Select`` widget that uses a list of Polish voivodeships (administrative
491
555
provinces) as its choices.
560
.. class:: pt.forms.PTZipCodeField
562
A form field that validates input as a Portuguese zip code.
564
.. class:: pt.forms.PTPhoneNumberField
566
A form field that validates input as a Portuguese phone number.
567
Valid numbers have 9 digits (may include spaces) or start by 00
568
or + (international).
517
594
.. class:: ro.forms.ROIBANField
519
A form field that validates its input as a Romanian International Bank
596
A form field that validates its input as a Romanian International Bank
520
597
Account Number (IBAN). The valid format is ROXX-XXXX-XXXX-XXXX-XXXX-XXXX,
521
598
with or without hyphens.
597
674
A ``Select`` widget that uses a list of Spanish regions as its choices.
679
.. class:: se.forms.SECountySelect
681
A Select form widget that uses a list of the Swedish counties (län) as its
684
The cleaned value is the official county code -- see
685
http://en.wikipedia.org/wiki/Counties_of_Sweden for a list.
687
.. class:: se.forms.SEOrganisationNumber
689
A form field that validates input as a Swedish organisation number
690
(organisationsnummer).
692
It accepts the same input as SEPersonalIdentityField (for sole
693
proprietorships (enskild firma). However, co-ordination numbers are not
696
It also accepts ordinary Swedish organisation numbers with the format
699
The return value will be YYYYMMDDXXXX for sole proprietors, and NNNNNNNNNN
700
for other organisations.
702
.. class:: se.forms.SEPersonalIdentityNumber
704
A form field that validates input as a Swedish personal identity number
707
The correct formats are YYYYMMDD-XXXX, YYYYMMDDXXXX, YYMMDD-XXXX,
708
YYMMDDXXXX and YYMMDD+XXXX.
710
A \+ indicates that the person is older than 100 years, which will be taken
711
into consideration when the date is validated.
713
The checksum will be calculated and checked. The birth date is checked
716
By default, co-ordination numbers (samordningsnummer) will be accepted. To
717
only allow real personal identity numbers, pass the keyword argument
718
coordination_number=False to the constructor.
720
The cleaned value will always have the format YYYYMMDDXXXX.
722
.. class:: se.forms.SEPostalCodeField
724
A form field that validates input as a Swedish postal code (postnummer).
725
Valid codes consist of five digits (XXXXX). The number can optionally be
726
formatted with a space after the third digit (XXX XX).
728
The cleaned value will never contain the space.
599
730
Switzerland (``ch``)
600
731
====================
628
759
A form field that validates input as a UK postcode. The regular
629
760
expression used is sourced from the schema for British Standard BS7666
630
address types at http://www.govtalk.gov.uk/gdsc/schemas/bs7666-v2-0.xsd.
761
address types at http://www.cabinetoffice.gov.uk/media/291293/bs7666-v2-0.xml.
632
763
.. class:: uk.forms.UKCountySelect
683
814
A model field that forms represent as a ``forms.USStateField`` field and
684
815
stores the two-letter U.S. state abbreviation in the database.
820
.. class:: uy.forms.UYCIField
822
A field that validates Uruguayan 'Cedula de identidad' (CI) numbers.
824
.. class:: uy.forms.UYDepartamentSelect
826
A ``Select`` widget that uses a list of Uruguayan departaments as its