Opened 6 years ago

Closed 4 years ago

#13733 closed New feature (invalid)

New Zealand localflavor

Reported by: Matthew Schinckel Owned by: nobody
Component: contrib.localflavor Version:
Severity: Normal Keywords: localflavorsplit
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

There should be some localflavor for New Zealanders!

Attachments (1)

nz-localflavor.diff (8.9 KB) - added by Matthew Schinckel 6 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 6 years ago by Matthew Schinckel

Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

I have a patch which does phone and postcode validation, and provides a Provincial District select widget.

I understand that this is not used as a level of government anymore, but my use-case was to do with Public Holidays, and I believe that this is how public holidays are grouped over there.

More than happy to have other input - there are several other kinds of regional organisation which can be applied.

Changed 6 years ago by Matthew Schinckel

Attachment: nz-localflavor.diff added

comment:2 Changed 6 years ago by Russell Keith-Magee

Component: Contrib appsdjango.contrib.localflavor
Triage Stage: UnreviewedAccepted

comment:3 Changed 6 years ago by Chris Beaven

Patch needs improvement: set
Version: 1.2

NZ's regions would be more of an appropriate regional separation.

comment:4 Changed 5 years ago by Julien Phalip

Severity: Normal
Type: New feature

Tests also need to be updated to use unittest.

comment:5 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:6 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:7 Changed 4 years ago by Matthew Schinckel

I believe it is possible to have two kinds of groupings: such as with 'nations' and 'regions' in django.contrib.localflavor.gb

As provinces are still used for provincial public holidays, of which there is one per province per year.

comment:8 Changed 4 years ago by Aymeric Augustin

Keywords: localflavorsplit added
Resolution: invalid
Status: newclosed

django.contrib.localflavor is now deprecated (see https://docs.djangoproject.com/en/dev/ref/contrib/localflavor/).

If you'd like, I encourage you to create a django-localflavor- (where is your country code), following the template of all the other django-localflavor- packages. See http://github.com/django for the list.

Once that's done, we can link to it from the documentation.

Thanks for your understanding!

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