Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for django 2.2 & 4.0 #168

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 2 additions & 4 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 @@ -19,7 +19,7 @@ def readfile(filename):
url="https://github.com/jazzband/django-fsm-log",
license="MIT",
packages=find_packages(exclude=["tests"]),
install_requires=["django>=1.8", "django_fsm>=2", "django_appconf"],
install_requires=["django>=3.2", "django_fsm>=2", "django_appconf"],
extras_require={
"testing": [
"pytest",
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