From f1ab0aec2e8b0787f928b283a0b2a8738a1a35c3 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 2 Oct 2014 11:47:02 +0200 Subject: [PATCH] Fix fragment on tag page. --- apps/catalogue/templates/catalogue/tagged_object_list.html | 2 +- apps/catalogue/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/catalogue/templates/catalogue/tagged_object_list.html b/apps/catalogue/templates/catalogue/tagged_object_list.html index 9027027a7..3df560a6f 100644 --- a/apps/catalogue/templates/catalogue/tagged_object_list.html +++ b/apps/catalogue/templates/catalogue/tagged_object_list.html @@ -105,7 +105,7 @@ {% 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 }} diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 20518e885..a25a08ffa 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -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)) -- 2.20.1