A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
add fix for messed up html at reminders, thanks to @brookst
dadoschefb015733796
diff --git a/src/documents/admin.py b/src/documents/admin.pyindex 534f9143b..4143ef2a1 100644--- a/src/documents/admin.py+++ b/src/documents/admin.py@@ -8,6 +8,8 @@ try:except ImportError:from django.urls import reversefrom django.templatetags.static import static+from django.utils.safestring import mark_safe+from django.utils.html import format_html, format_html_joinfrom .models import Correspondent, Tag, Document, Log@@ -180,7 +182,7 @@ class DocumentAdmin(CommonAdmin):)})- return r+ return mark_safe(r)tags_.allow_tags = Truedef document(self, obj):@@ -201,15 +203,14 @@ class DocumentAdmin(CommonAdmin):@staticmethoddef _html_tag(kind, inside=None, **kwargs):- attributes = []- for lft, rgt in kwargs.items():- attributes.append('{}="{}"'.format(lft, rgt))+ attributes = format_html_join(' ', '{}="{}"', kwargs.items())if inside is not None:- return "<{kind} {attributes}>{inside}</{kind}>".format(- kind=kind, attributes=" ".join(attributes), inside=inside)+ return format_html("<{kind} {attributes}>{inside}</{kind}>",+ kind=kind, attributes=attributes, inside=inside)- return "<{} {}/>".format(kind, " ".join(attributes))++ return format_html("<{} {}/>", kind, attributes)class LogAdmin(CommonAdmin):