From b7be25173983e05dc4819196ed28f65ee1256d9b Mon Sep 17 00:00:00 2001 From: Stiftung Development Date: Wed, 17 Sep 2025 23:55:45 +0200 Subject: [PATCH] Fix Paperless thumbnail URLs: Remove duplicate /paperless/ path - get_paperless_thumbnail_url() was adding /paperless/ twice - PAPERLESS_API_URL already includes /paperless/ prefix - Now generates: base_url/api/documents/{id}/thumb/ instead of base_url/api/paperless/documents/{id}/thumb/ - Fixes thumbnail display functionality --- app/stiftung/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stiftung/models.py b/app/stiftung/models.py index 0db750b..6e4e42e 100644 --- a/app/stiftung/models.py +++ b/app/stiftung/models.py @@ -1314,7 +1314,7 @@ class DokumentLink(models.Model): from django.conf import settings if settings.PAPERLESS_API_URL: - return f"{settings.PAPERLESS_API_URL}/api/paperless/documents/{self.paperless_document_id}/thumb/" + return f"{settings.PAPERLESS_API_URL}/api/documents/{self.paperless_document_id}/thumb/" return None def get_verpachtung(self):