summaryrefslogtreecommitdiff
path: root/app/resume/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/resume/views.py')
-rw-r--r--app/resume/views.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/resume/views.py b/app/resume/views.py
index d7230f7..15acf14 100644
--- a/app/resume/views.py
+++ b/app/resume/views.py
@@ -19,6 +19,19 @@ class PublisherListView(PaginatedListView):
return context
+class ByPublisherListView(PaginatedListView):
+ template_name = 'archives/resume-pubs-by-pub.html'
+
+ def get_queryset(self):
+ print(self.kwargs['publisher'])
+ return PubItem.objects.filter(publisher__slug=self.kwargs['publisher'])
+
+ def get_context_data(self, **kwargs):
+ # Call the base implementation first to get a context
+ context = super(ByPublisherListView, self).get_context_data(**kwargs)
+ context['publisher'] = Publisher.objects.get(slug=self.kwargs['publisher'])
+ return context
+
class PubItemDetailView(DetailView):
model = PubItem
template_name = "details/resume.html"