Update configuration.py

This commit is contained in:
zainab2097 2024-07-29 17:29:11 +03:00 committed by GitHub
parent 008eef4e7c
commit 9a98f1c04d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class AttachmentRule(models.Model):
@api.constrains('file_save')
def _check_attachment_size(self):
max_size = 10 * 1024 * 1024 # 10 MB
max_size = 4 * 1024 * 1024 # 4 MB
for record in self:
if record.file_save:
file_size = len(base64.b64decode(record.file_save))