#13729: UK localflavor mis-named/documentation bug.
--------------------------+-------------------------------------------------
Reporter: schinckel | Owner: nobody
Status: new | Milestone:
Component: Contrib apps | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
--------------------------+-------------------------------------------------
The documentation for localflavor states that:
{{{
Inside that package, country- or culture-specific code is organized into
subpackages, named using ISO 3166 country codes.
}}}
However, the ISO 3166 code for the United Kingdom is actually GB. Thus,
anything that uses ISO 3166 codes to store countries (such as django-
countries) will be unable to automatically get the correct localflavor
information.
Since changing this would break existing code, perhaps there could be
another gb module that just shadows the uk module.
For instance, in gb/forms.py, we might have:
{{{
from django.contrib.localflavor import uk
GBPostcodeField = uk.UKPostcodeField
GBCountySelect = uk.UKCountySelect
GBNationSelect = uk.UKNationSelect
}}}
This means that all is needed is this file, and any changes to the uk one
will also apply to gb.
--
Ticket URL: <http://code.djangoproject.com/ticket/13729>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.