summaryrefslogtreecommitdiff
path: root/app/resume
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-11-17 11:56:31 -0500
committerluxagraf <sng@luxagraf.net>2015-11-17 11:56:31 -0500
commit06be3368da3cef043d3939b918f7c27fb08c6e10 (patch)
tree911c48a3c49251ec942f62fd75b3c005413197b9 /app/resume
parentc7a9f40e8d06b1914d306c54d2531a2657025942 (diff)
redid resume section and tricked out templates a bit
Diffstat (limited to 'app/resume')
-rw-r--r--app/resume/views.py8
1 files changed, 7 insertions, 1 deletions
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