diff --git a/setup.py b/setup.py index ee5848eb6..d3e708eed 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ 'astroplan==0.8', 'astropy==4.2.1', 'beautifulsoup4~=4.9', - 'django~=3.1', # TOM Toolkit requires db math functions + 'django>=3.1,<5.0', # TOM Toolkit requires db math functions 'djangorestframework~=3.12', 'django-bootstrap4~=3.0', 'django-contrib-comments~=2.0', # Earlier version are incompatible with Django >= 3.0