Opened 16 years ago

Closed 12 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

Description

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

ontrib/localflavor/bg/
contrib/localflavor/bg/
contrib/localflavor/bg/bg_cities.py
contrib/localflavor/bg/init.py
contrib/localflavor/bg/forms.py

The forms.py 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 bg_cities.py 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 16 years ago.
Bulgarian localflavor files

Download all attachments as: .zip

Change History (8)

by jdimov, 16 years ago

Attachment: bg-localflavor.tar.gz added

Bulgarian localflavor files

comment:1 by Jacob, 16 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 15 years ago

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 by Russell Keith-Magee, 15 years ago

milestone: 1.2

comment:4 by Luke Plant, 14 years ago

Severity: Normal
Type: New feature

comment:5 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:6 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:7 by Aymeric Augustin, 12 years ago

Keywords: localflavorsplit added
Resolution: invalid
Status: newclosed

django.contrib.localflavor is now deprecated (see https://docs.djangoproject.com/en/dev/ref/contrib/localflavor/).

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 http://github.com/django 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