Browse files

Use __unicode__ for Author and Categories in Breadcrumbs

  • Loading branch information...
1 parent 2d012e5 commit 49d69f48244cc0d56cae27b5f2829572d5c59054 @Fantomas42 committed Apr 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 zinnia/templatetags/zbreadcrumbs.py
View
4 zinnia/templatetags/zbreadcrumbs.py
@@ -60,10 +60,10 @@ def entry_breadcrumbs(entry):
Crumb(x.name)],
'Author': lambda x: [Crumb(_('Authors'),
reverse('zinnia_author_list')),
- Crumb(x.username)],
+ Crumb(x.__unicode__())],
'Category': lambda x: [Crumb(
_('Categories'), reverse('zinnia_category_list'))] +
- [Crumb(anc.title, anc.get_absolute_url())
+ [Crumb(anc.__unicode__(), anc.get_absolute_url())
for anc in x.get_ancestors()] + [Crumb(x.title)],
'Entry': entry_breadcrumbs}

0 comments on commit 49d69f4

Please sign in to comment.