Repository: openwisp/django-flat-json-widget (language: python)

Issue:
[deps] Add support for django 3.2 and django 4.0 alpha
Let's make sure this module can run with Django 3.2 and Django 4.0 alpha.
[deps] Add support for django 3.2 and django 4.0 alpha
Let's make sure this module can run with Django 3.2 and Django 4.0 alpha.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 43af58e..3056dc0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -25,6 +25,12 @@ jobs:
           - 3.9
         django-version:
           - django~=3.1.0
+          - django~=3.2.0
+        include:
+          - django-version: django~=4.0.0
+            python-version: 3.9
+          - django-version: django~=4.0.0
+            python-version: 3.8
 
     steps:
     - uses: actions/checkout@v2
diff --git a/.gitignore b/.gitignore
index 237877b..1435ed3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,3 +71,7 @@ Pipfile
 
 # celery
 tests/celerybeat*
+
+# virtual env
+/venv/
+
diff --git a/.stylelintrc.json b/.stylelintrc.json
index 06639b7..2be2231 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -14,6 +14,6 @@
         "except": ["first-nested"],
         "ignore": ["after-comment", "inside-block"]
       }],
-      "unit-whitelist": ["em", "rem", "%", "s", "px", "vh", "deg"]
+      "unit-allowed-list": ["em", "rem", "%", "s", "px", "vh", "deg"]
     }
   }
diff --git a/setup.py b/setup.py
index aaef396..9bf616e 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,15 @@
     include_package_data=True,
     zip_safe=False,
     install_requires=[],
-    extras_require={'test': ['openwisp-utils[qa]~=0.7', 'django-extensions~=3.0']},
+    extras_require={
+        'test': [
+            (
+                'openwisp-utils[qa]'
+                ' @ https://github.com/openwisp/openwisp-utils/tarball/master'
+            ),
+            'django-extensions~=3.1.0',
+        ]
+    },
     classifiers=[
         'Development Status :: 3 - Alpha',
         'Environment :: Web Environment',


Test patch:
diff --git a/tests/urls.py b/tests/urls.py
index 7fd38be..bd39cc2 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -1,11 +1,11 @@
 from django.conf import settings
-from django.conf.urls import include, url
 from django.conf.urls.static import static
 from django.contrib import admin
 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
+from django.urls import include, path
 
 urlpatterns = [
-    url(r'^admin/', admin.site.urls),
+    path('admin/', admin.site.urls),
 ]
 
 urlpatterns += staticfiles_urlpatterns()
@@ -14,4 +14,4 @@
 if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:
     import debug_toolbar
 
-    urlpatterns += [url(r'^__debug__/', include(debug_toolbar.urls))]
+    urlpatterns += [path('^__debug__/', include(debug_toolbar.urls))]