From 5be1414f601e7e272c0486e98dde4100b3ca3567 Mon Sep 17 00:00:00 2001 From: Chris Allan Date: Wed, 31 May 2023 09:03:02 +0000 Subject: [PATCH] Revert "Allow Django 4.0.x" This reverts commit c9191f7e6f5284016fe70f0c89eaba3efda1474c. --- omero/plugins/web.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/omero/plugins/web.py b/omero/plugins/web.py index 13ad0f2149..6edb2867d0 100644 --- a/omero/plugins/web.py +++ b/omero/plugins/web.py @@ -76,7 +76,7 @@ def wrapper(self, *args, **kwargs): import django # NOQA except Exception: self.ctx.die(681, "ERROR: Django not installed!") - if django.VERSION < (3, 2) or django.VERSION >= (4, 1): + if django.VERSION < (3, 2) or django.VERSION >= (3, 3): self.ctx.err( "ERROR: Django version %s is not " "supported!" % django.get_version() diff --git a/setup.py b/setup.py index 244b139e57..fe34d95f12 100755 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ def read(fname): "omero-py>=5.7.0", # minimum requirements for `omero web start` "concurrent-log-handler>=0.9.20", - "Django>=3.2.19,<4.1", + "Django>=3.2.18,<4.0", "django-pipeline==2.1.0", "django-cors-headers==3.7.0", "whitenoise>=5.3.0",