From 7ff2c70e785173cc4bf142f2b18b4344ae055bbc Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Mon, 6 Jan 2025 14:31:58 +0100 Subject: [PATCH 1/2] Drop python 3.8 . Add tests for python 3.13 and django 5.1 --- tox.ini | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index fc76e5d..843f6df 100644 --- a/tox.ini +++ b/tox.ini @@ -1,16 +1,17 @@ [tox] envlist = - py{38,39,310,311}-dj-4.2 - py{310,311,312}-5.0 - py{310,311,312}-dj-master + py{39,310,311}-dj-4.2 + py{310,311,312,313}-5.0 + py{310,311,312,313}-5.1 + py{310,311,312,313}-dj-master [gh-actions] python = - 3.8: py38 3.9: py39 3.10: py310 3.11: py311 3.12: py312 + 3.13: py313 [testenv] usedevelop = true @@ -22,4 +23,5 @@ setenv= deps = dj-4.2: Django>=4.2,<5 dj-5.0: Django>=5,<5.1 + dj-5.1: Django>=5.1,<5.2 dj-master: https://github.com/django/django/archive/master.tar.gz From e95bfa788b86b9f4e201be64dd3a5b25be4b0aa5 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Tue, 7 Jan 2025 11:19:16 +0100 Subject: [PATCH 2/2] Update readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 69d724a..a6396a8 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ by enabling a cached backend. See [Advanced Usage](#advanced-usage) ## 4.0.0 (not released) - remove support for django 2.2 & 4.0 +- remote support for python 3.7 & 3.8 +- add support for django 5.1 and python 3.13 +- Switch to django-fsm-2 ## 3.1.0 (2023-03-23) @@ -184,7 +187,7 @@ article.submit(description="Article reviewed and submitted") # logged with "Art ``` .. TIP:: - The "description" argument passed when calling ".submit" has precedence over the default description set in the decorator +The "description" argument passed when calling ".submit" has precedence over the default description set in the decorator The decorator also accepts a `allow_inline` boolean argument that allows to set the description inside the transition method. @@ -240,7 +243,7 @@ is fired. This is useful if: - you need immediate access to StateLog details, and cannot wait until `django_fsm.signals.post_transition` -has been fired + has been fired - at any stage, you need to verify whether or not the StateLog has been written to the database Access to the pending StateLog record is available via the `pending_objects` manager