diff options
Diffstat (limited to 'app/posts/views/guide_views.py')
-rw-r--r-- | app/posts/views/guide_views.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/posts/views/guide_views.py b/app/posts/views/guide_views.py index 5b15af1..aea91dd 100644 --- a/app/posts/views/guide_views.py +++ b/app/posts/views/guide_views.py @@ -36,7 +36,12 @@ class GuideTopicListView(PaginatedListView): def get_context_data(self, **kwargs): context = super(GuideTopicListView, self).get_context_data(**kwargs) - context['topic'] = Category.objects.get(slug=self.kwargs['topic']) + topic = Category.objects.get(slug=self.kwargs['topic']) + context['topic'] = topic + context['breadcrumbs'] = ('Guides', topic.name ) + + + Category.objects.get(slug=self.kwargs['topic']) return context |