[PATCH 1/5] templates: Replace ifequal and ifnotequal with if

2020-08-27 Thread Andrew Donnellan
Django 3.1 deprecates the ifequal and ifnotequal tags, for removal in 4.0. Replace all occurrences of ifequal and ifnotequal with if. Signed-off-by: Andrew Donnellan --- .../patchwork/partials/pagination.html| 8 .../patchwork/partials/patch-list.html| 20

[PATCH 2/5] urls: Update url pattern functions

2020-08-27 Thread Andrew Donnellan
Django 3.1 deprecates django.conf.urls.url() as an alias for django.urls.re_path(). Also switch to using django.urls.include() rather than django.conf.urls.include(). Signed-off-by: Andrew Donnellan --- patchwork/urls.py | 331 +++--- 1 file changed, 167

[PATCH 3/5] settings: Add context processor django.template.context_processors.request

2020-08-27 Thread Andrew Donnellan
Django 3.1 adds a new admin sidebar feature that requires the django.template.context_processors.request context processor to be enabled in the settings. Signed-off-by: Andrew Donnellan --- patchwork/settings/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patchwork/settings/base.py

[PATCH 5/5] Add support for Django 3.1

2020-08-27 Thread Andrew Donnellan
Signed-off-by: Andrew Donnellan --- releasenotes/notes/django-3-1-support-f0450ed3e7983fe2.yaml | 5 + requirements-dev.txt| 2 +- requirements-prod.txt | 2 +- tox.ini

[PATCH 4/5] requirements: Update django-filter

2020-08-27 Thread Andrew Donnellan
Update django-filter dependency to a version that's compatible with Django 3.1. Signed-off-by: Andrew Donnellan --- requirements-dev.txt | 2 +- requirements-prod.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index