Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ch zip #154

Merged
merged 1 commit into from
Jun 3, 2015
Merged

fix ch zip #154

merged 1 commit into from
Jun 3, 2015

Conversation

camillobruni
Copy link
Contributor

According to http://en.wikipedia.org/wiki/List_of_postal_codes_of_Switzerland and
http://en.wikipedia.org/wiki/Postal_codes_in_Switzerland_and_Liechtenstein the Swiss
zip code has a range from 1000-9000 similar to the belgian ones. The current
implementation wrongly accepts 0000 as a valid zip code.

The range 9480 to 9499 is assigned to zip codes from Liechtenstein.

See:
http://en.wikipedia.org/wiki/Postal_codes_in_Switzerland_and_Liechtenstein
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this detailed explanation is useful here. I would simply add the range and the wikipedia link.

@claudep
Copy link
Member

claudep commented Jun 2, 2015

Thanks, looks good now. Could you please merge your commits?

@camillobruni
Copy link
Contributor Author

there you go, thanks for the quick feedback

@claudep
Copy link
Member

claudep commented Jun 3, 2015

Test failures are unrelated to this patch. Thanks for your work.

claudep added a commit that referenced this pull request Jun 3, 2015
Fixed validation of Swiss localflavor zip code
@claudep claudep merged commit 34129c8 into django:master Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants