From 06be3368da3cef043d3939b918f7c27fb08c6e10 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 17 Nov 2015 11:56:31 -0500 Subject: redid resume section and tricked out templates a bit --- app/resume/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/resume/views.py b/app/resume/views.py index bdfd01b..563ceaf 100644 --- a/app/resume/views.py +++ b/app/resume/views.py @@ -2,7 +2,7 @@ from django.views.generic.detail import DetailView from django.views.generic.base import TemplateView from utils.views import PaginatedListView -from .models import PubItem +from .models import PubItem, Publisher from pages.models import Page @@ -12,6 +12,12 @@ class PublisherListView(PaginatedListView): def get_queryset(self): return PubItem.objects.all() + def get_context_data(self, **kwargs): + # Call the base implementation first to get a context + context = super(PublisherListView, self).get_context_data(**kwargs) + context['pub_list'] = Publisher.objects.all() + return context + class PubItemDetailView(DetailView): model = PubItem -- cgit v1.2.3