fix topics url

This commit is contained in:
Élie Bouttier 2016-09-18 02:29:54 +02:00
parent 4ab10780e5
commit d9b4f67f3f
3 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -13,7 +13,7 @@
{% if talk.topics.exists %}
<i>{% trans "in" %}</i>
{% for topic in talk.topics.all %}
<a href="{{ topic.get_full_url }}">{{ topic }}</a>
<a href="{{ topic.get_absolute_url }}">{{ topic }}</a>
{% if forloop.revcounter == 2 %} {% trans "and" %} {% elif not forloop.last %}, {% endif %}
{% endfor %}
{% endif %}

View File

@ -38,7 +38,7 @@
{% for topic in talk.topics.all %}
{% if forloop.first %}<ul>{% endif %}
<li><a href="{{ topic.get_full_url }}">{{ topic }}</a></li>
<li><a href="{{ topic.get_absolute_url }}">{{ topic }}</a></li>
{% if forloop.last %}</ul>{% endif %}
{% empty %}
<i>{% trans "No topics." %}</i>