Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #5286 -- Fixed non-HTML output bug in adminindex command. Thank…

…s, dan.fairs@gmail.com and piranha

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c998feb3bb97cfd8f7ca00aeb6a0fa61f4815f07 1 parent a6b1d65
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/core/management/commands/adminindex.py
3  django/core/management/commands/adminindex.py
View
@@ -1,4 +1,5 @@
from django.core.management.base import AppCommand
+from django.utils.encoding import force_unicode
from django.utils.text import capfirst
MODULE_TEMPLATE = ''' {%% if perms.%(app)s.%(addperm)s or perms.%(app)s.%(changeperm)s %%}
@@ -24,7 +25,7 @@ def handle_app(self, app, **options):
output.append(MODULE_TEMPLATE % {
'app': app_label,
'mod': model._meta.module_name,
- 'name': capfirst(model._meta.verbose_name_plural),
+ 'name': force_unicode(capfirst(model._meta.verbose_name_plural)),
'addperm': model._meta.get_add_permission(),
'changeperm': model._meta.get_change_permission(),
})
Please sign in to comment.
Something went wrong with that request. Please try again.