Skip to content

Commit

Permalink
Remove support for django 2.2 & 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ticosax committed Mar 24, 2023
1 parent cc4d17c commit 044a052
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions django_fsm_log/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
import django

if django.VERSION < (3, 2):
default_app_config = "django_fsm_log.apps.DjangoFSMLogAppConfig"
4 changes: 0 additions & 4 deletions django_fsm_log/managers.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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("_"):
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 044a052

Please sign in to comment.