Skip to content

Commit

Permalink
Use __unicode__ for Author and Categories in Breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed Apr 29, 2013
1 parent 2d012e5 commit 49d69f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zinnia/templatetags/zbreadcrumbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 49d69f4

Please sign in to comment.