Skip to content

Commit 7033d0e

Browse files
authored
🐛(backend) cast DOCUMENT_IMAGE_MAX_SIZE in integer
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.
1 parent 0dd6818 commit 7033d0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/impress/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class Base(Configuration):
142142
)
143143

144144
# Document images
145-
DOCUMENT_IMAGE_MAX_SIZE = values.Value(
145+
DOCUMENT_IMAGE_MAX_SIZE = values.IntegerValue(
146146
10 * (2**20), # 10MB
147147
environ_name="DOCUMENT_IMAGE_MAX_SIZE",
148148
environ_prefix=None,

0 commit comments

Comments
 (0)