Code

Opened 4 years ago

Closed 21 months ago

#13733 closed New feature (invalid)

New Zealand localflavor

Reported by: 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 schinckel 4 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 years ago by 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 4 years ago by schinckel

comment:2 Changed 4 years ago by russellm

  • Component changed from Contrib apps to django.contrib.localflavor
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 4 years ago by SmileyChris

  • Patch needs improvement set
  • Version 1.2 deleted

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

comment:4 Changed 3 years ago by julien

  • Severity set to Normal
  • Type set to New feature

Tests also need to be updated to use unittest.

comment:5 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:6 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:7 Changed 2 years ago by 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 21 months ago by aaugustin

  • Keywords localflavorsplit added
  • Resolution set to invalid
  • Status changed from new to closed

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!

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.