From 86d02c36bacef4c5225dc23f7d972391e091d50a Mon Sep 17 00:00:00 2001 From: Diego Alonso Alvarez Date: Thu, 29 Aug 2024 12:39:21 +0200 Subject: [PATCH] Force Django>5 and add flag to remove errors in tests --- liionsden/settings/settings.py | 4 ++++ pyproject.toml | 2 +- requirements-dev.txt | 2 +- requirements.txt | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/liionsden/settings/settings.py b/liionsden/settings/settings.py index 91137579..d9d2888d 100644 --- a/liionsden/settings/settings.py +++ b/liionsden/settings/settings.py @@ -207,3 +207,7 @@ crossorigin="anonymous", ) ) + + +# To facilitate testing of MPTT with bakery +MPTT_ALLOW_TESTING_GENERATORS = True diff --git a/pyproject.toml b/pyproject.toml index fc539e84..69d2cf38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "pandas", "psycopg2", "django_jsoneditor", - "Django", + "Django>=5.0", "djangorestframework", "preparenovonix", "PyYAML", diff --git a/requirements-dev.txt b/requirements-dev.txt index 7502c104..003b9ade 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -55,7 +55,7 @@ debugpy==1.8.5 # via Liionsden (pyproject.toml) distlib==0.3.8 # via virtualenv -django==4.2.15 +django==5.1 # via # Liionsden (pyproject.toml) # crispy-bootstrap5 diff --git a/requirements.txt b/requirements.txt index b6c3b4f5..12957a21 100644 --- a/requirements.txt +++ b/requirements.txt @@ -42,7 +42,7 @@ cycler==0.12.1 # via matplotlib debugpy==1.8.5 # via Liionsden (pyproject.toml) -django==4.2.15 +django==5.1 # via # Liionsden (pyproject.toml) # crispy-bootstrap5