Skip to content

Instantly share code, notes, and snippets.

@dzwarg
Created January 25, 2012 16:11
Show Gist options
  • Save dzwarg/1676990 to your computer and use it in GitHub Desktop.
Save dzwarg/1676990 to your computer and use it in GitHub Desktop.
Patch for development version upgrade
diff --git a/django/publicmapping/redistricting/management/commands/database_i18n.py b/django/publicmapping/redistricting/manageme
index a889235..3702116 100644
--- a/django/publicmapping/redistricting/management/commands/database_i18n.py
+++ b/django/publicmapping/redistricting/management/commands/database_i18n.py
@@ -100,7 +100,7 @@ class Command(BaseCommand):
# The short label for all districts in this body
poutil.add_or_update(
msgid=u'%s short label' % legislativebody.name,
- msgstr=legislativebody.title.replace('%s', '%(district_id)s')
+ msgstr=legislativebody.short_label.replace('%s', '%(district_id)s')
)
# The label for all districts in this body
poutil.add_or_update(
@@ -110,7 +110,7 @@ class Command(BaseCommand):
# The description for all districts in this body (unused)
poutil.add_or_update(
msgid=u'%s long description' % legislativebody.name,
- msgstr=''
+ msgstr=legislativebody.title
)
for geolevel in Geolevel.objects.all():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment