Opened 10 years ago

Closed 6 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 10 years ago.
Bulgarian localflavor files

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by jdimov

Attachment: bg-localflavor.tar.gz added

Bulgarian localflavor files

comment:1 Changed 10 years ago by Jacob

Triage Stage: UnreviewedAccepted

comment:2 Changed 9 years ago by Jannis Leidel

milestone: 1.2
Needs documentation: set
Needs tests: set
Patch needs improvement: set
Version: 1.0

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

comment:3 Changed 9 years ago by Russell Keith-Magee

milestone: 1.2

comment:4 Changed 7 years ago by Luke Plant

Severity: Normal
Type: New feature

comment:5 Changed 7 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:6 Changed 7 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:7 Changed 6 years ago by Aymeric Augustin

Keywords: localflavorsplit added
Resolution: invalid
Status: newclosed

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