A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Missed PAPERLESS_COMMENTS_ENABLED code
Michael Shamoon865fbbd15c96
diff --git a/src/documents/views.py b/src/documents/views.pyindex 9713e5d95..41f652905 100644--- a/src/documents/views.py+++ b/src/documents/views.py@@ -21,7 +21,6 @@ from django.db.models.functions import Lowerfrom django.http import Http404from django.http import HttpResponsefrom django.http import HttpResponseBadRequest-from django.http import HttpResponseNotAllowedfrom django.utils.decorators import method_decoratorfrom django.utils.translation import get_languagefrom django.views.decorators.cache import cache_control@@ -399,9 +398,6 @@ class DocumentViewSet(@action(methods=["get", "post", "delete"], detail=True)def comments(self, request, pk=None):- if settings.PAPERLESS_COMMENTS_ENABLED is not True:- return HttpResponseNotAllowed("comment function is disabled")-try:doc = Document.objects.get(pk=pk)except Document.DoesNotExist: