Opened 8 years ago

Closed 4 years ago

#9622 closed New feature (invalid)

Bulgarian Local Flavor

Reported by: jdimov Owned by: nobody
Component: contrib.localflavor Version:
Severity: Normal Keywords: bulgarian, localflavorsplit
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: yes Patch needs improvement: yes
Easy pickings: no UI/UX: no


The attached .tar.gz file contains the following structure:


The file contains the following form fields, with proper validation:

  • BGPostalCodeField -- A Bulgarian postal code field
  • BGEGNField -- A Bulgarian EGN (Social Security) number
  • BGPhoneNumberField -- A Bulgarian phone number field
  • BGCountySelect -- A Select widget that uses a list of Bulgarian counties as its choices

Additionally, the file contains:

  • BG_COUNTIES -- a choices tuple
  • BG_CITIES -- a tuple of tuples containg information about all Bulgarian cities, including city name, phone code, postal code, and the abbreviation used on license plate numbers for that city
  • A helper function get_by_city(city, attribute), which returns an attribute by city name, using the BG_CITIES tuple

~ Jordan Dimov <jdimov@…>

Attachments (1)

bg-localflavor.tar.gz (5.6 KB) - added by jdimov 8 years ago.
Bulgarian localflavor files

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by jdimov

Bulgarian localflavor files

comment:1 Changed 7 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by jezdez

  • milestone set to 1.2
  • Needs documentation set
  • Needs tests set
  • Patch needs improvement set
  • Version 1.0 deleted

Please provide a diff file created from the root of a Django svn checkout, as well as docs and tests.

comment:3 Changed 7 years ago by russellm

  • milestone 1.2 deleted

comment:4 Changed 5 years ago by lukeplant

  • Severity set to Normal
  • Type set to New feature

comment:5 Changed 5 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:6 Changed 5 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:7 Changed 4 years ago by aaugustin

  • Keywords localflavorsplit added
  • Resolution set to invalid
  • Status changed from new to closed

django.contrib.localflavor is now deprecated (see

If you'd like, I encourage you to create a django-localflavor- (where is your country code), following the template of all the other django-localflavor- packages. See for the list.

Once that's done, we can link to it from the documentation.

Thanks for your understanding!

Note: See TracTickets for help on using tickets.
Back to Top