Opened 11 years ago

Closed 11 years ago

#5692 closed (duplicate)

Countries list for localflavor

Reported by: Davide "Design" Muzzarelli <info@…> Owned by: nobody
Component: contrib.localflavor Version: master
Severity: Keywords: countries
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


This is a new file to place in django/contrib/localflavor/generic/

The file include a tuple of counties ISO-3166-1. The country names should be not translated.

My suggestion for the file name is "".

Attachments (1) (9.6 KB) - added by Davide "Design" Muzzarelli <info@…> 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Davide "Design" Muzzarelli <info@…>

Attachment: added

comment:1 Changed 11 years ago by Davide "Design" Muzzarelli <info@…>

Example of use in a model:

from django.contrib.localflavor.generic import country

class UerProfile(models.Model):
   # ...
   country = models.CharField(max_length=2, choices=[(x[0], x[3]) for x in country.COUNTRIES])
   # ...

comment:2 Changed 11 years ago by Simon G <dev@…>

Triage Stage: UnreviewedReady for checkin

comment:3 Changed 11 years ago by Malcolm Tredinnick

Resolution: duplicate
Status: newclosed

I'm going to close this in favour of #5446, which has a little more functionality and is all ready for localisation.

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