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)
Change History (8)
by , 16 years ago
Attachment: | bg-localflavor.tar.gz added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 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 , 15 years ago
milestone: | 1.2 |
---|
comment:4 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:7 by , 12 years ago
Keywords: | localflavorsplit added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
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!
Bulgarian localflavor files