⬆️(back) upgrade django to version 5.2

Django 5.2 is now mature enough and we can use it in production.
In some tests the number of sql queries is increasing. This is because
the `full_clean` method called in the `save` method on all our models is
creating a transaction, so a savepoint and release is added.
We also fix deprecated warning in this commit.
This commit is contained in:
Manuel Raynaud
2025-06-16 15:05:25 +02:00
parent a99c813421
commit 7ed33019c2
8 changed files with 18 additions and 19 deletions

View File

@@ -849,6 +849,9 @@ class Test(Base):
"django.contrib.auth.hashers.MD5PasswordHasher",
]
USE_SWAGGER = True
# Static files are not used in the test environment
# Tests are raising warnings because the /data/static directory does not exist
STATIC_ROOT = None
CELERY_TASK_ALWAYS_EAGER = values.BooleanValue(True)