From: Radek Czajka Date: Thu, 2 Oct 2014 09:47:02 +0000 (+0200) Subject: Fix fragment on tag page. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/f1ab0aec2e8b0787f928b283a0b2a8738a1a35c3 Fix fragment on tag page. --- 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))