diff options
Diffstat (limited to 'app/links')
-rw-r--r-- | app/links/views.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/links/views.py b/app/links/views.py index b00d32c..2c74509 100644 --- a/app/links/views.py +++ b/app/links/views.py @@ -8,6 +8,11 @@ class LinkListView(PaginatedListView): model = Link template_name = 'archives/links.html' + def get_context_data(self, **kwargs): + # Call the base implementation first to get a context + context = super(LinkListView, self).get_context_data(**kwargs) + context['tags'] = Link.tags.all() + return context class LinkTagListView(PaginatedListView): model = Link @@ -20,6 +25,7 @@ class LinkTagListView(PaginatedListView): # Call the base implementation first to get a context context = super(LinkTagListView, self).get_context_data(**kwargs) context['tag'] = Tag.objects.get(slug__exact=self.kwargs['slug']) + context['tags'] = Link.tags.all() return context class LinkDetailView(DetailView): |