Changelog

1.6 (unreleased)

New flavors:

  • Added local flavor for Cuba (gh-292)

New fields for existing flavors:

  • Added KWAreaSelect form field. (gh-296)

Modifications to existing flavors:

  • Fixed crash with USZipCodeField form validation when null=True is allowed (gh-295).
  • Deprecated br.forms.DV_maker, sg.forms.SGNRIC_FINField, lt.forms.LTPhoneField and ro.forms.ROIBANField (gh-305).
  • Added support for Swedish interim personal identity numbers (gh-308).
  • Deprecated nl.models.NLBankAccountNumberField. (gh-307).

Other changes:

  • Added support for empty_value kwarg in Django >= 1.11 (gh-298).
  • Dropped support for Python 3.2.

1.5 (2017-05-26)

New flavors:

  • Added local flavor for Ukraine (gh-273)

New fields for existing flavors:

  • Added NOBankAccountNumber form field. (gh-275)
  • Added AUCompanyNumberField model and form field. (gh-278)

Modifications to existing flavors:

  • Added normalized versions of COFA state names for US. (gh-277)
  • Fixed Dutch NLZipCodeField field not to store empty value as a single space. (gh-280)
  • Fixed validation for old Australian tax file numbers. (gh-284)

Other changes:

  • None

1.4 (2017-01-03)

New flavors:

  • Added local flavor for Venezuela (gh-245)
  • Added local flavor for Morocco (gh-270)

New fields for existing flavors:

  • Added MXCLABEField model and form fields. (gh-227).
  • Added AUTaxFileNumberField model and form fields. (gh-238)
  • Added KWGovernorateSelect field to easily select Kuwait governorates. (gh-231).
  • Added FRRegion2016Select field to stick to current legislation (gh-260) and (gh-268).

Modifications to existing flavors:

  • Enhancements of localflavor.br.forms.BRCNPJField (gh-240 gh-254).
  • Fixed century bug with Kuwait Civil ID verification localflavor.kw.forms (gh-195).
  • Allow passing field name as first positional argument of IBANField. (gh-236).
  • Fixed French FRNationalIdentificationNumber bug with imaginary birth month values. (gh-242).
  • Fixed French FRNationalIdentificationNumber bug with corsican people born after 2000. (gh-242).
  • Fixed the translation for US state ‘Georgia’ from colliding with the country ‘Georgia’ (gh-250).
  • Fixed the styling errors and enabled prospector (gh-259).
  • Allow AU ABN value with spaces to validate (gh-266 gh-267).

Other changes:

  • Drop support for Django 1.7 (gh-218).
  • Ensure the migration framework generates schema migrations for model fields that change the max_length (gh-257). Users will need to generate migrations for any model fields they use with ‘makemigrations’.
  • Lazily generate US_STATES, STATE_CHOICES, and USPS_CHOICES (gh-203 gh-272).
  • Deprecated Phone Number fields (gh-262).
  • Bumped versions of requirements for testing (gh-274).

1.3 (2016-05-06)

New flavors:

  • Added local flavor for Bulgaria (gh-191)
  • Added local flavor for Tunisia (gh-141)
  • Added local flavor for Hungary (gh-213)

New fields for existing flavors:

  • Added ARCBUField form field. (gh-151).
  • Added NLZipCodeField, NLProvinceField, NLSoFiNumberField, NLPhoneNumberField model fields. (gh-152).
  • Added AUBusinessNumberField model and form fields. (gh-63)

Modifications to existing flavors:

  • Moved Dutch validators from localflavor.nl.forms to localflavor.nl.validators (gh-152).
  • Fix check for promotional social security numbers in USSocialSecurityNumberField (gh-157).
  • Updated IBANField to support the latest additions to the IBAN Registry (version 64 / March 2016).
  • Fix bug with MXRFCField where some incorrect values would validate correctly. (gh-204).
  • Fixed bug with IBANFormField validation. (gh-215).
  • Update regex in DEZipCodeField to prohibit invalid postal codes. (gh-216).
  • Added deconstructor methods to validators. (gh-220).
  • Fix bug in ESIdentityCardNumberField where some valid values for NIE numbers were not validating. (gh-217)
  • Add deconstruct method to all model fields (gh-162 gh-224).

Other changes:

  • Drop support for Django 1.5, Django 1.6 and Python 2.6 (gh-170).

1.2 (2015-11-27)

New flavors:

  • None

New fields for existing flavors:

  • Added form field for Estonian business registration codes (gh-135).
  • Added model field for Ecuadorian provinces (gh-138).
  • Added form field for Swiss Social Security numbers ( (gh-155).
  • Added form field for Brazilian Legal Process numbers (Processo) (gh-163).

Modifications to existing flavors:

  • Fixed misspelled Polish administrative unit names (gh-136).
  • Added Kosovo and Timor-Leste to list of IBAN countries (gh-139).
  • Fixed error in Romanian fiscal identity code (CIF) field when value has a trailing slash (gh-146).
  • Updated validation in Swiss postal code field to only accept values in the range 1000 - 9000 (gh-154).
  • Added validator for International Article Number (EAN) to the generic module (gh-156).
  • Updated Italian social security number field to use ‘tax code’ in error message (gh-167).
  • Fixed error in Greek tax number code field when value has only alpha characters (gh-171).
  • Added stricter validation in the Brazilian Cadastro de Pessoas Físicas (CPF) field (gh-172).
  • Corrected Romanian counties choice names to use ș and ț (comma below) (gh-175).
  • Updated Brazilian postal code field to also accept values with XX.XXX-XXX and XXXXXXXX formats (gh-177).
  • Marked US state names for translation (gh-178).
  • Fixed French national identification number validation for people born before 1976 in Corsica (gh-186).

1.1 (2014-12-10)

New flavors:

  • Added local flavor for Denmark (gh-83)
  • Added local flavor for Estonia (gh-70)
  • Added local flavor for Latvia (gh-68)
  • Added local flavor for Malta (gh-88)
  • Added local flavor for Pakistan (gh-41)
  • Added local flavor for Singapore (gh-119)

New fields for existing flavors:

  • Added model and form fields for French SIREN/SIRET numbers (gh-123)
  • Added model field for states of Brazil (gh-22)
  • Added form field for Indian Aadhaar numbers (gh-23)
  • Added model field for states of India (gh-23)
  • Added form field for Lithuanian phone numbers
  • Added model field for Dutch bank accounts (gh-42)
  • Added form field for Italian phone numbers (gh-74)
  • Added form field for French National Identification Number (gh-75)
  • Added IBAN model and form fields (gh-86)
  • Added BIC model and form fields (gh-125)
  • Added SSN model field for US (gh-96)
  • Added ZIP code model field for US (gh-55)

Other modifications to existing flavors:

  • backward incompatible Updated the region lists of Great Britain (gh-43, gh-126)
  • Added Ceuta and Mellila to regions of Spain (gh-8)
  • Added support entities in Italian SSN form field (gh-20)
  • Added Japanese prefecture codes and fix prefecture order (gh-27)
  • Added normalization for Lithuanian postal code field (gh-69)
  • Added whitespace stripping whitespace from US ZIP code field (gh-77)
  • Added an option for customizing French form field labels (gh-102)
  • Added mapping between provinces and regions for Italy (gh-105)
  • Added Telengana to states of India (gh-107)
  • Added support for 14X and 17X Chinese cell numbers (gh-17, gh-120)
  • Allowed spaces in CPF numbers for Brazil (gh-32)
  • Fixed CIF validation for Spain (gh-78)
  • Fixed armed forces “states” for US (gh-8)
  • Fixed REGON number validation for Poland (gh-62)
  • Rejected US SSN starting with 9 (gh-35)
  • Rejected Brazilian CPF number when all numbers all numbers are equal (gh-103)
  • Added ‘Y’ to the NIE number validation for Spain (gh-127)
  • Updated Argentina’s CUIT number validation to support legal types 24 and 33 (gh-121)
  • Added ‘R’, ‘V’ and ‘W’ to the Spanish identity card number validation (gh-132)

Other changes:

  • Added checksums module (from Django) providing a Luhn validator (gh-122)

1.0 (2013-07-29)

Initial release