fix topics url
This commit is contained in:
parent
4ab10780e5
commit
d9b4f67f3f
|
@ -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):
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue