It would be easier to maintain an accurate list. I think.
On 31 oct, 03:27, Sergiy Kuzmenko <
s.kuzme...@gmail.com> wrote:
> It would be useful to have a consistent interface between localflavor
> modules. Something in the line of the following:
>
> SUBDIVISION_NAME - top level subdivision name, e.g., "state", "province",
> "county", "parish" etc. or None if there are no subdivisions.
> POSTAL_CODE_NAME - "zip", "postal code", "pin", "index" etc. or None if
> country has no postal codes.
> NEED_POSTAL_CODE - True or False (tells us whether or not postal code is
> required for this country).
> SUBDIVISION_CHOICE - List of lelel 1 subdivisions or None if country has no
> subdivisions, This can be aliased (e.g., US_STATES) to please local users
> as well as for compatibility purposes.
> FULL_SUBDIVISION_CHOISES - Optional nested tuple for countries with
> multiple subdivisions. By default same as SUBDIVISION_CHOICE
> POSTAL_CODE_VALIDATOR - Postal code validator or None if postal code is not
> required.
> PHONE_NUMBER_VALIDATOR - Phone number validator or None if not applicable.
>
> On top of this: model field and form field shortcuts (e.g.,
> SubdivisionField, PhoneNumberField) and other country specific goodies
> (e.g., social security number validator). All localflavor modules must pass
> a minimal interface compatibility test.
>
> Thanks
>
>
>
>
>
>
>
> On Sun, Oct 30, 2011 at 4:33 PM, Jli <
liuti.j...@gmail.com> wrote:
> > Hi,
>