Fix menu Themes link.
[wolnelektury.git] / apps / catalogue / templatetags / catalogue_tags.py
index 0800865..c9bf3dd 100644 (file)
@@ -366,8 +366,8 @@ def book_mini(book, with_link=True):
 def work_list(context, object_list):
     request = context.get('request')
     for obj in object_list:
-        obj.object_type = type(object_list[0]).__name__
-
+        obj.object_type = type(obj).__name__
+        
     return locals()
 
 
@@ -418,7 +418,7 @@ def catalogue_menu():
                 ('genre', _('Genres'), 'gatunki'),
                 ('kind', _('Kinds'), 'rodzaje'),
                 ('epoch', _('Epochs'), 'epoki'),
-                ('theme', _('Themes'), 'autorzy'),
+                ('theme', _('Themes'), 'motywy'),
         ]}