A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
def thumbnail uses FORCE_SCRIPT_NAME
maphy-psde4854f214442
diff --git a/src/documents/admin.py b/src/documents/admin.pyindex 7cba10c74..90d952fda 100644--- a/src/documents/admin.py+++ b/src/documents/admin.py@@ -70,9 +70,13 @@ class DocumentAdmin(CommonAdmin):created_.short_description = "Created"def thumbnail(self, obj):+ if settings.FORCE_SCRIPT_NAME:+ _src="{}/fetch/thumb/{}".format(settings.FORCE_SCRIPT_NAME,obj.id)+ else:+ _src="/fetch/thumb/{}".format(obj.id)png_img = self._html_tag("img",- src="/fetch/thumb/{}".format(obj.id),+ src=_src,width=180,alt="Thumbnail of {}".format(obj.file_name),title=obj.file_name