From 044a052c891d7bc8f2280bbd0b43a039670f9408 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Fri, 24 Mar 2023 10:05:09 +0100 Subject: [PATCH] Remove support for django 2.2 & 4.0 fixes #150 #160 --- README.md | 2 ++ django_fsm_log/__init__.py | 4 ---- django_fsm_log/managers.py | 4 ---- setup.py | 4 +--- tox.ini | 2 -- 5 files changed, 3 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 94255e2..69d724a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ by enabling a cached backend. See [Advanced Usage](#advanced-usage) ## 4.0.0 (not released) +- remove support for django 2.2 & 4.0 + ## 3.1.0 (2023-03-23) - `fsm_log_description` now accepts a default description parameter diff --git a/django_fsm_log/__init__.py b/django_fsm_log/__init__.py index a33393c..e69de29 100644 --- a/django_fsm_log/__init__.py +++ b/django_fsm_log/__init__.py @@ -1,4 +0,0 @@ -import django - -if django.VERSION < (3, 2): - default_app_config = "django_fsm_log.apps.DjangoFSMLogAppConfig" diff --git a/django_fsm_log/managers.py b/django_fsm_log/managers.py index 0cd096c..d3fd057 100644 --- a/django_fsm_log/managers.py +++ b/django_fsm_log/managers.py @@ -1,4 +1,3 @@ -import django from django.contrib.contenttypes.models import ContentType from django.db import models from django.db.models.query import QuerySet @@ -20,9 +19,6 @@ class StateLogManager(models.Manager): def get_queryset(self): return StateLogQuerySet(self.model) - if django.VERSION < (1, 7): - get_query_set = get_queryset - def __getattr__(self, attr, *args): # see https://code.djangoproject.com/ticket/15062 for details if attr.startswith("_"): diff --git a/setup.py b/setup.py index 6713b4b..0022b29 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def readfile(filename): setup( name="django-fsm-log", - version="3.1.0", + version="4.0.0.dev0", description="Transition's persistence for django-fsm", long_description=readfile("README.md"), long_description_content_type="text/markdown", @@ -37,9 +37,7 @@ def readfile(filename): "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", - "Framework :: Django :: 2.2", "Framework :: Django :: 3.2", - "Framework :: Django :: 4.0", "Framework :: Django :: 4.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", diff --git a/tox.ini b/tox.ini index 40feda5..9711090 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,6 @@ [tox] envlist = - py{37,38,39}-dj-2.2 py{37,38,39,310}-dj-3.2 - py{38,39,310,311}-dj-4.0 py{38,39,310,311}-dj-4.1 py{310,311}-dj-master