Django

Code

Ticket #3876 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Add Australian localflavor

Reported by: Matthew Flanagan <mattimustang@gmail.com> Assigned to: adrian
Milestone: Component: Contrib apps
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 1

Attachments

localflavor_au.diff (7.6 kB) - added by Matthew Flanagan <mattimustang@gmail.com> on 03/30/07 01:09:20.
localflavor.au module
localflavor_au2.diff (6.9 kB) - added by mattimustang@gmail.com on 04/07/07 02:18:52.
updated patch with better ValidationError? message and moved tests into localflavor.py module

Change History

03/30/07 01:09:20 changed by Matthew Flanagan <mattimustang@gmail.com>

  • attachment localflavor_au.diff added.

localflavor.au module

03/30/07 01:21:52 changed by mtredinnick

  • needs_better_patch set to 1.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

The phone number validator's error message is misleading. Note that (0432) 198 765 is a valid input, but it's not 10 digits jammed together. I'm really reluctant to be too strict on phone numbers in general, since there are so many ways to enter them. This seems like a good way to go, although we should allow hyphens, too (and just strip them out).

04/07/07 02:18:52 changed by mattimustang@gmail.com

  • attachment localflavor_au2.diff added.

updated patch with better ValidationError? message and moved tests into localflavor.py module

04/08/07 08:22:48 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [4955]) Fixed #3876 -- Added Australian local flavour. Thanks, Matthew Flanagan.


Add/Change #3876 (Add Australian localflavor)




Change Properties
Action