Document page has to reference to document model.
This commit is contained in:
@@ -306,7 +306,7 @@ class DocumentPageView(SimpleView):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def get_object(self):
|
def get_object(self):
|
||||||
return get_object_or_404(DocumentPage.objects.filter(document__document_type__organization__pk=settings.ORGANIZATION_ID), pk=self.kwargs['pk'])
|
return get_object_or_404(DocumentPage.objects.filter(document_version__document__document_type__organization__pk=settings.ORGANIZATION_ID), pk=self.kwargs['pk'])
|
||||||
|
|
||||||
|
|
||||||
class DocumentPageViewResetView(RedirectView):
|
class DocumentPageViewResetView(RedirectView):
|
||||||
|
|||||||
Reference in New Issue
Block a user