Make CabinetDetailView a subclass of DocumentListView to add pagination to the document list.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
bc85c3be59
commit
72160bf806
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user