Opened 13 years ago

Closed 13 years ago

#16338 closed Bug (fixed)

at.forms.ATZipCodeField accept invalid input

Reported by: Bernhard Essl Owned by: Bernhard Essl
Component: contrib.localflavor Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The austrian postal code is 4 digit long and the first digit can not be 0. http://en.wikipedia.org/wiki/Postal_codes_in_Austria

The django.contrib.localflavor.at.forms.ATZipCodeField accepts invalid inputs like 0123 or 0007.

I added a patch (code, doc and test).

Attachments (1)

localflavor_at_postal.diff (1.8 KB ) - added by Bernhard Essl 13 years ago.

Download all attachments as: .zip

Change History (5)

by Bernhard Essl, 13 years ago

Attachment: localflavor_at_postal.diff added

comment:1 by Bernhard Essl, 13 years ago

Owner: changed from nobody to Bernhard Essl
Status: newassigned

comment:2 by Aymeric Augustin, 13 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted

comment:3 by Aymeric Augustin, 13 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Ramiro Morales, 13 years ago

Resolution: fixed
Status: assignedclosed

In [16447]:

Fixed #16338 -- Fixed Austrian postal codes validation. Thanks Bernhard Essl for the report and patch.

Note: See TracTickets for help on using tickets.
Back to Top