diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-11-01 00:52:58 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-11-01 00:52:58 +0000 |
| commit | 5c05233ffcaa2d2185aaa4b787e4a265c195f13e (patch) | |
| tree | 4082cf845eff5aaab58df8398c3499afa8e8a889 /django/contrib | |
| parent | 799a3057cd96670ec0bb4290549acc3721391dbe (diff) | |
Fixed #14455 -- Documented the backwards compatibility policy for local flavors. Implemented the policy for the changes in the Indonesian local flavor (from r14195) that stimulated the development of this policy. Thanks to Karen, Alex, Ramiro and Chris for their help developing the policy.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib')
| -rw-r--r-- | django/contrib/localflavor/id/id_choices.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/contrib/localflavor/id/id_choices.py b/django/contrib/localflavor/id/id_choices.py index 5b2a0d7d26..64c4bccf13 100644 --- a/django/contrib/localflavor/id/id_choices.py +++ b/django/contrib/localflavor/id/id_choices.py @@ -1,3 +1,4 @@ +import warnings from django.utils.translation import ugettext_lazy as _ # Reference: http://id.wikipedia.org/wiki/Daftar_provinsi_Indonesia @@ -5,6 +6,11 @@ from django.utils.translation import ugettext_lazy as _ # Indonesia does not have an official Province code standard. # I decided to use unambiguous and consistent (some are common) 3-letter codes. +warnings.warn( + 'There have been recent changes to the ID localflavor. See the release notes for details', + RuntimeWarning +) + PROVINCE_CHOICES = ( ('ACE', _('Aceh')), ('BLI', _('Bali')), |
