From 7d88dafd94f9bd8316f4828c13ee88bf87552348 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 14 Jun 2010 15:29:09 +0200 Subject: [PATCH] tag disambiguation page updated --- apps/catalogue/views.py | 6 +++--- wolnelektury/templates/catalogue/differentiate_tags.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index b04cf43c5..0adce195a 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -79,11 +79,11 @@ def differentiate_tags(request, tags, ambiguous_slugs): options = [] for tag in models.Tag.objects.exclude(category='book').filter(slug=ambiguous_slugs[0]): options.append({ - 'url_args': '/'.join((beginning, tag.url_chunk, unparsed)).rstrip('/'), - 'tags': tags + [tag] + 'url_args': '/'.join((beginning, tag.url_chunk, unparsed)).strip('/'), + 'tags': [tag] }) return render_to_response('catalogue/differentiate_tags.html', - {'tags': tags, 'options': options, 'unparsed': unparsed}, + {'tags': tags, 'options': options, 'unparsed': ambiguous_slugs[1:]}, context_instance=RequestContext(request)) diff --git a/wolnelektury/templates/catalogue/differentiate_tags.html b/wolnelektury/templates/catalogue/differentiate_tags.html index 86e34bb40..51b382164 100644 --- a/wolnelektury/templates/catalogue/differentiate_tags.html +++ b/wolnelektury/templates/catalogue/differentiate_tags.html @@ -14,7 +14,7 @@
{% for option in options %} {% endfor %}
-- 2.20.1