Repository: ambitioninc/django-activatable-model (language: python)

Issue:
Django 4 updates



Discussion / hints:

Fix patch:
diff --git a/activatable_model/__init__.py b/activatable_model/__init__.py
index 0533652..619084f 100644
--- a/activatable_model/__init__.py
+++ b/activatable_model/__init__.py
@@ -2,4 +2,3 @@
 from .signals import model_activations_changed, model_activations_updated
 from .version import __version__
 
-default_app_config = 'activatable_model.apps.ActivatableModelConfig'
diff --git a/activatable_model/version.py b/activatable_model/version.py
index b7a5531..7f5601d 100644
--- a/activatable_model/version.py
+++ b/activatable_model/version.py
@@ -1,1 +1,1 @@
-__version__ = '3.0.1'
+__version__ = '3.1.0'
diff --git a/docs/release_notes.rst b/docs/release_notes.rst
index b778fbb..61f369e 100644
--- a/docs/release_notes.rst
+++ b/docs/release_notes.rst
@@ -1,6 +1,11 @@
 Release Notes
 =============
 
+v3.1.0
+------
+* Drop django 2
+* Add Django 4.2
+
 v3.0.1
 ------
 * Fix manifest
diff --git a/requirements/requirements.txt b/requirements/requirements.txt
index 940d2ed..55ba0bf 100644
--- a/requirements/requirements.txt
+++ b/requirements/requirements.txt
@@ -1,2 +1,2 @@
-Django>=2.2
-django-manager-utils>=2.0.0
+Django>=3.2
+django-manager-utils>=3.1.0
diff --git a/setup.py b/setup.py
index 4c6834c..c2329f7 100644
--- a/setup.py
+++ b/setup.py
@@ -45,12 +45,10 @@ def get_lines(file_path):
         'License :: OSI Approved :: MIT License',
         'Operating System :: OS Independent',
         'Framework :: Django',
-        'Framework :: Django :: 2.2',
-        'Framework :: Django :: 3.0',
-        'Framework :: Django :: 3.1',
         'Framework :: Django :: 3.2',
         'Framework :: Django :: 4.0',
         'Framework :: Django :: 4.1',
+        'Framework :: Django :: 4.2',
     ],
     license='MIT',
     install_requires=install_requires,


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index e434bf7..0378255 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -18,26 +18,18 @@ jobs:
         # AttributeError: module 'collections' has no attribute 'Callable'
         # https://github.com/nose-devs/nose/issues/1099
         django:
-        - 'Django~=2.2.0'
-        - 'Django~=3.0.0'
-        - 'Django~=3.1.0'
         - 'Django~=3.2.0'
         - 'Django~=4.0.0'
         - 'Django~=4.1.0'
+        - 'Django~=4.2.0'
         experimental: [false]
-#        include:
-#        - python: '3.9'
-#          django: 'https://github.com/django/django/archive/refs/heads/main.zip#egg=Django'
-#          experimental: true
-#          # NOTE this job will appear to pass even when it fails because of
-#          # `continue-on-error: true`. Github Actions apparently does not
-#          # have this feature, similar to Travis' allow-failure, yet.
-#          # https://github.com/actions/toolkit/issues/399
         exclude:
         - python: '3.7'
           django: 'Django~=4.0.0'
         - python: '3.7'
           django: 'Django~=4.1.0'
+        - python: '3.7'
+          django: 'Django~=4.2.0'
     services:
       postgres:
         image: postgres:latest
diff --git a/activatable_model/tests/migrations/0001_initial.py b/activatable_model/tests/migrations/0001_initial.py
index 5d88983..63bd48a 100644
--- a/activatable_model/tests/migrations/0001_initial.py
+++ b/activatable_model/tests/migrations/0001_initial.py
@@ -1,5 +1,4 @@
 # -*- coding: utf-8 -*-
-from __future__ import unicode_literals
 
 from django.db import models, migrations
 import django.db.models.deletion
diff --git a/activatable_model/tests/migrations/0002_activatablemodelwrelandcascade.py b/activatable_model/tests/migrations/0002_activatablemodelwrelandcascade.py
index 1c3d051..4c776b3 100644
--- a/activatable_model/tests/migrations/0002_activatablemodelwrelandcascade.py
+++ b/activatable_model/tests/migrations/0002_activatablemodelwrelandcascade.py
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
 # Generated by Django 1.9 on 2017-06-28 17:24
-from __future__ import unicode_literals
 
 from django.db import migrations, models
 import django.db.models.deletion