]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Add Django 3.0 support
authorAndrew Donnellan <ajd@linux.ibm.com>
Wed, 8 Apr 2020 21:47:54 +0000 (22:47 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 8 Apr 2020 22:35:08 +0000 (23:35 +0100)
Add the latest version of Django.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #311
patchwork/api/patch.py
releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml [new file with mode: 0644]
tox.ini

index 15fce8efdba5c433072cd4dd4b9910e5fc349761..d881504f170a7ec8ef2f93c4aa93191300b60572 100644 (file)
@@ -9,7 +9,7 @@ import email.parser
 
 from django.core.exceptions import ValidationError
 from django.utils.text import slugify
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 from rest_framework import status
 from rest_framework.exceptions import APIException
 from rest_framework.exceptions import PermissionDenied
diff --git a/releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml b/releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml
new file mode 100644 (file)
index 0000000..63ba225
--- /dev/null
@@ -0,0 +1,5 @@
+---
+features:
+  - |
+    `Django 3.0 <https://docs.djangoproject.com/en/dev/releases/3.0/>`_ is
+    now supported.
diff --git a/tox.ini b/tox.ini
index 39254c84229b28fe02ef9bc1b862819370c7fcb5..8ba754706c4d1c7ae4b287083c8e742488cb17ad 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 3.2
-envlist = pep8,docs,py{36,37,38}-django{22}
+envlist = pep8,docs,py{36,37,38}-django{22,30}
 skipsdist = true
 ignore_basepython_conflict = true
 
@@ -11,6 +11,9 @@ deps =
     django22: django>=2.2,<2.3
     django22: djangorestframework>=3.10,<3.12
     django22: django-filter>=2.1,<3.0
+    django30: django>=3.0,<3.1
+    django30: djangorestframework>=3.10,<3.12
+    django30: django-filter>=2.2,<3.0
 setenv =
     DJANGO_SETTINGS_MODULE = patchwork.settings.dev
     PYTHONDONTWRITEBYTECODE = 1