Commit 609bd896bf69357d9be0faa73fb447277b24e2f7

Authored by Gustavo Bernardo
1 parent e245a0dd

Passing topic instance to the template to get the topic of the link [Issue:#126]

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
courses/templatetags/list_topic_foruns.py
... ... @@ -59,7 +59,7 @@ def list_topic_link_edit(request,topic):
59 59 'request':request
60 60 }
61 61 context['links'] = Link.objects.filter(topic = topic)
62   - context['slug'] = topic.slug
  62 + context['topic'] = topic
63 63 return context
64 64  
65 65 @register.inclusion_tag('topic/link_topic_list.html')
... ... @@ -68,5 +68,5 @@ def list_topic_link(request,topic):
68 68 'request':request
69 69 }
70 70 context['links'] = Link.objects.filter(topic = topic)
71   - context['slug'] = topic.slug
  71 + context['topic'] = topic
72 72 return context
... ...