From d9b4f67f3fd06e792b80e701810513c0a4896d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Sun, 18 Sep 2016 02:29:54 +0200 Subject: [PATCH] fix topics url --- proposals/models.py | 2 +- proposals/templates/proposals/_talk_list.html | 2 +- proposals/templates/proposals/talk_detail.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proposals/models.py b/proposals/models.py index 7af4ab8..c123cc2 100644 --- a/proposals/models.py +++ b/proposals/models.py @@ -42,7 +42,7 @@ class Topic(PonyConfModel): return self.name def get_absolute_url(self): - return reverse('list-talks') + '?filter=topic:%s' % self.slug + return reverse('list-talks') + '?topic=%s' % self.slug class Event(models.Model): diff --git a/proposals/templates/proposals/_talk_list.html b/proposals/templates/proposals/_talk_list.html index 1f2d51c..7e09670 100644 --- a/proposals/templates/proposals/_talk_list.html +++ b/proposals/templates/proposals/_talk_list.html @@ -13,7 +13,7 @@ {% if talk.topics.exists %} {% trans "in" %} {% for topic in talk.topics.all %} - {{ topic }} + {{ topic }} {% if forloop.revcounter == 2 %} {% trans "and" %} {% elif not forloop.last %}, {% endif %} {% endfor %} {% endif %} diff --git a/proposals/templates/proposals/talk_detail.html b/proposals/templates/proposals/talk_detail.html index 75643ae..cdf3901 100644 --- a/proposals/templates/proposals/talk_detail.html +++ b/proposals/templates/proposals/talk_detail.html @@ -38,7 +38,7 @@ {% for topic in talk.topics.all %} {% if forloop.first %}{% endif %} {% empty %} {% trans "No topics." %}