This was recently reported as an issue. Add a simple check to ensure
people update their dependencies as expected.

Signed-off-by: Stephen Finucane <step...@that.guru>
Cc: Siddhesh Poyarekar <sipoy...@redhat.com>
Cc: DJ Delorie <d...@redhat.com>
Cc: Carlos O'Donell <car...@redhat.com>
---
 manage.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git manage.py manage.py
index 033c8ae4..e227481e 100755
--- manage.py
+++ manage.py
@@ -7,6 +7,11 @@ if __name__ == "__main__":
         "DJANGO_SETTINGS_MODULE", "patchwork.settings.production"
     )
 
+    import django
+
+    if django.VERSION < (3, 2):
+        raise Exception('patchwork requires Django 3.2 or greater')
+
     from django.core.management import execute_from_command_line
 
     execute_from_command_line(sys.argv)
-- 
2.37.3

_______________________________________________
Patchwork mailing list
Patchwork@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to