Opened 5 years ago

Closed 5 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 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by Bernhard Essl

Attachment: localflavor_at_postal.diff added

comment:1 Changed 5 years ago by Bernhard Essl

Owner: changed from nobody to Bernhard Essl
Status: newassigned

comment:2 Changed 5 years ago by Aymeric Augustin

Easy pickings: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 5 years ago by Aymeric Augustin

Triage Stage: AcceptedReady for checkin

comment:4 Changed 5 years ago by Ramiro Morales

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