Repository: jazzband/django-simple-menu (language: python)

Issue:
Support Django 4.1 (and Python 3.11)
Django 4.1 [has been out for a while now](https://docs.djangoproject.com/en/4.1/releases/4.1/). Since the backwards incompatible changes concern mostly the database backend, `django-simple-menu` should work as-is with no modifications.


Discussion / hints:

Fix patch:
diff --git a/CHANGES b/CHANGES
index 83f0607..de95a73 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,8 +1,11 @@
 django-simple-menu changelog
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+Version 2.0.4 - Released November 17th, 2022
+ - Support Python 3.11 and Django 4.1 (#110, #111)
+
 Version 2.0.3 - Released November 17th, 2022
- - Fixed typo ina  docstring (#109)
+ - Fixed typo in a docstring (#109)
 
 Version 2.0.2 - Released November 4th, 2022
  - Fixed generation of documentation on ReadTheDocs
diff --git a/setup.cfg b/setup.cfg
index 97de802..11d269c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,6 +11,7 @@ classifiers =
     Framework :: Django
     Framework :: Django :: 3.2
     Framework :: Django :: 4.0
+    Framework :: Django :: 4.1
     Intended Audience :: Developers
     License :: OSI Approved :: BSD License
     Natural Language :: English
@@ -25,6 +26,7 @@ classifiers =
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3.9
     Programming Language :: Python :: 3.10
+    Programming Language :: Python :: 3.11
 
 [options]
 packages =
diff --git a/tox.ini b/tox.ini
index 0001baf..e0ba83d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,8 @@ skipsdist = true
 usedevelop = true
 envlist =
     py{36,37,38,39,310}-dj32
-    py{38,39,310}-dj{40,main}
+    py{38,39,310}-dj40
+    py{38,39,310,311}-dj{41,main}
 
 [gh-actions]
 python =
@@ -12,11 +13,13 @@ python =
     3.8: py38
     3.9: py39
     3.10: py310
+    3.11: py311
 
 [gh-actions:env]
 DJANGO =
     3.2: dj32
     4.0: dj40
+    4.1: dj41
     main: djmain
 
 [testenv]
@@ -25,6 +28,7 @@ deps =
     coverage
     dj32: Django>=3.2,<3.3
     dj40: Django>=4.0,<4.1
+    dj41: Django>=4.1,<4.2
     djmain: https://github.com/django/django/tarball/main
 setenv =
     DJANGO_SETTINGS_MODULE=simple_menu.test_settings


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8582303..e1b5a43 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -9,8 +9,8 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
-        django-version: ['3.2', '4.0', 'main']
+        python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
+        django-version: ['3.2', '4.0', '4.1', 'main']
 
     steps:
     - uses: actions/checkout@v2