From 72160bf806224bbb85aadd5dff59ca47377a3bd5 Mon Sep 17 00:00:00 2001 From: Michael Price Date: Thu, 1 Mar 2018 23:46:30 -0400 Subject: [PATCH] Make CabinetDetailView a subclass of DocumentListView to add pagination to the document list. Signed-off-by: Michael Price --- mayan/apps/cabinets/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mayan/apps/cabinets/views.py b/mayan/apps/cabinets/views.py index 0fed347728..534f7bed1b 100644 --- a/mayan/apps/cabinets/views.py +++ b/mayan/apps/cabinets/views.py @@ -15,6 +15,7 @@ from common.views import ( ) from documents.permissions import permission_document_view from documents.models import Document +from documents.views import DocumentListView from .forms import CabinetListForm from .models import Cabinet @@ -83,7 +84,7 @@ class CabinetDeleteView(SingleObjectDeleteView): } -class CabinetDetailView(TemplateView): +class CabinetDetailView(DocumentListView): template_name = 'cabinets/cabinet_details.html' def get_document_queryset(self):