Fix fragment on tag page.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Thu, 2 Oct 2014 09:47:02 +0000 (11:47 +0200)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Thu, 2 Oct 2014 09:47:02 +0000 (11:47 +0200)
apps/catalogue/templates/catalogue/tagged_object_list.html
apps/catalogue/views.py

index 9027027..3df560a 100644 (file)
         {% else %}
 
         {% choose_cite tag_ids=tag_ids as cite_promo_pk %}
-        {% choose_fragment tag_ids=tag_ids unless=cite_promo as fragment_promo_pk %}
+        {% choose_fragment tag_ids=tag_ids unless=cite_promo_pk as fragment_promo_pk %}
         {{ cite_promo_pk.if }}
             {% ssi_include 'social_cite' pk=cite_promo_pk %}
         {{ cite_promo_pk.endif }}
index 20518e8..a25a08f 100644 (file)
@@ -250,7 +250,7 @@ def tagged_object_list(request, tags=''):
             'only_my_shelf': only_my_shelf,
             'formats_form': forms.DownloadFormatsForm(),
             'tags': tags,
-            'tags_ids': tags_pks,
+            'tag_ids': tags_pks,
             'theme_is_set': theme_is_set,
         },
         context_instance=RequestContext(request))