From 609bd896bf69357d9be0faa73fb447277b24e2f7 Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Sun, 23 Oct 2016 16:30:17 -0300 Subject: [PATCH] Passing topic instance to the template to get the topic of the link [Issue:#126] --- courses/templatetags/list_topic_foruns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/courses/templatetags/list_topic_foruns.py b/courses/templatetags/list_topic_foruns.py index b023421..d095904 100644 --- a/courses/templatetags/list_topic_foruns.py +++ b/courses/templatetags/list_topic_foruns.py @@ -59,7 +59,7 @@ def list_topic_link_edit(request,topic): 'request':request } context['links'] = Link.objects.filter(topic = topic) - context['slug'] = topic.slug + context['topic'] = topic return context @register.inclusion_tag('topic/link_topic_list.html') @@ -68,5 +68,5 @@ def list_topic_link(request,topic): 'request':request } context['links'] = Link.objects.filter(topic = topic) - context['slug'] = topic.slug + context['topic'] = topic return context -- libgit2 0.21.2