Fantomas42/django-blog-zinnia — Issue #119: Month crumd return link without name
Author: amazonov
Created: 2011-11-27 19:40:25+00:00
State: open

Hello

I do not fully understand the reason but month_crumb in zbreadcrumbs.py return strange result. As result of this feature in breadcrumbs in month place I get empty link without title and text. {{ crumb.name }} returns nothing.

The problem has disappeared when I change some code in definition of month_crumb function.
Instead of

month = creation_date.strftime('%m')
month_text = creation_date.strftime('%b').capitalize()
return Crumb(month_text, reverse('zinnia_entry_archive_month',
args=[year, month]))

i leave only

month = creation_date.strftime('%m')
return Crumb(month, reverse('zinnia_entry_archive_month',
args=[year, month]))

I understand that you try put in crumb month name, but in my case that make this problem. I use 0.10 dev version. I made test with changing a language in settings.py from ru-Ru(russian) to en-US, but it doesn't work too.