Comments (7)
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.
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.
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.
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.
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.
Thanks for the suggestion @tobiasmcnulty, I hope 4d4c5a2 suffices to close this issue for good.
from django-localflavor.
@jezdez Does for me; thanks so much!
from django-localflavor.
Related Issues (20)
- Update Chile to have new region HOT 3
- 3.1 Release: 27 May 2021 HOT 7
- Field of CharField inheritance HOT 7
- Check import ordering with isort HOT 5
- Move from Travis CI to Github Actions for CI HOT 1
- Add support of models for Japan
- Bug: CIF spanish starting with U does not validate HOT 5
- French local : Use class Validators for SIRET and SIREN model fields, do not format output HOT 2
- Upgrade to Django 4.0 HOT 3
- localflavor fields not showing up HOT 1
- Add support for Nepal
- 4.0 release HOT 9
- IBAN validator failed for Italy HOT 3
- Override formfield method on Brazilian Model Fields HOT 2
- Add local-flavor support for Sri Lanka HOT 1
- Japanese translations are not supported HOT 9
- Javascript Support?
- Should `ISO_3166_1_ALPHA2_COUNTRY_CODES` be in `choices` format instead of as a flat tuple?
- Update Python and Django versions HOT 1
- Accept French Postal Services identifiers in forms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-localflavor.