From 7033d0ecf7a9eec7f8d907f823780bc90fcd8a49 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 15 Sep 2025 17:47:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(backend)=20cast=20DOCUMENT=5FIMAGE?= =?UTF-8?q?=5FMAX=5FSIZE=20in=20integer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The expected type for the settings DOCUMENT_IMAGE_MAX_SIZE is an integer. By not using django configurations IntegerValue, the value is used as it and most of the time will be a string. We must use the IntegerValue in order to cast the value in string. --- src/backend/impress/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/impress/settings.py b/src/backend/impress/settings.py index 9059dd29..151f2bfd 100755 --- a/src/backend/impress/settings.py +++ b/src/backend/impress/settings.py @@ -142,7 +142,7 @@ class Base(Configuration): ) # Document images - DOCUMENT_IMAGE_MAX_SIZE = values.Value( + DOCUMENT_IMAGE_MAX_SIZE = values.IntegerValue( 10 * (2**20), # 10MB environ_name="DOCUMENT_IMAGE_MAX_SIZE", environ_prefix=None,