Giter Club home page Giter Club logo

Comments (7)

charettes avatar charettes commented on May 18, 2024

Reading from the doc string of USPostalCodeField it seems that it represents the USPS code which is also a two uppercase letters format to represent states.

Note that a the USCG and USPS of state might differ. i.e. The USCG code of California is CF while it's USPS code is CA.

from django-localflavor.

bryanveloso avatar bryanveloso commented on May 18, 2024

I think the issue here is that "Postal Code" and "ZIP code" are interchangeable in the American lexicon, hence the concern brought forth by the OP. Something USPostalServiceCodeField would probably be less confusing.

from django-localflavor.

mxsasha avatar mxsasha commented on May 18, 2024

I can see your concern, but I don't think it's serious enough for everyone to rename references to this field. Perhaps you could submit a pull request with a clarified description, or something along those lines?

from django-localflavor.

ubernostrum avatar ubernostrum commented on May 18, 2024

The "postal code" field, historically, has its name because it accepts all codes the US Postal Service recognizes as "states", even though many of those codes represent places which are not US states (in fact some represent sovereign nations for which the US provides postal services).

Any attempt at a better name must avoid the politically-sensitive issue of referring to those as "states".

from django-localflavor.

tobiasmcnulty avatar tobiasmcnulty commented on May 18, 2024

Part of the confusion may be that there is no model field for US zip codes, so people see see the USPostalCodeField and assume it's a zip code. Is there a reason such a model field doesn't exist?

from django-localflavor.

jezdez avatar jezdez commented on May 18, 2024

Thanks for the suggestion @tobiasmcnulty, I hope 4d4c5a2 suffices to close this issue for good.

from django-localflavor.

tobiasmcnulty avatar tobiasmcnulty commented on May 18, 2024

@jezdez Does for me; thanks so much!

from django-localflavor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.