-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate StateLog model, to instead bring your own model.
This is an implementation that support the idea exposed in #133 It's still a Draft, I'm open for any feedback more specifically around the names. Not tested yet with a real project. It's meant to be completely backward compatible.
- Loading branch information
Showing
18 changed files
with
197 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
from typing import List | ||
|
||
from appconf import AppConf | ||
from django.conf import settings # noqa: F401 | ||
|
||
|
||
class DjangoFSMLogConf(AppConf): | ||
STORAGE_METHOD = "django_fsm_log.backends.SimpleBackend" | ||
CACHE_BACKEND = "default" | ||
IGNORED_MODELS = [] | ||
IGNORED_MODELS: List[str] = [] | ||
CONCRETE_MODEL: str = "django_fsm_log.models.StateLog" | ||
|
||
class Meta: | ||
prefix = "django_fsm_log" | ||
holder = "django_fsm_log.conf.settings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Generated by Django 2.1.5 on 2019-01-31 03:41 | ||
|
||
from django.db import migrations | ||
|
||
import django_fsm_log.managers | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[tool.black] | ||
line-length = 119 | ||
target-version = ["py311"] | ||
target-version = ["py37"] | ||
extend-exclude = "(^/django_fsm_log/migrations/.*$|^docs/.*$)" | ||
|
||
[tool.ruff] | ||
line-length = 119 | ||
target-version = "py311" | ||
target-version = "py37" | ||
select = ["E", "F", "I", "B", "C4", "T20", "TID", "UP"] | ||
exclude = ["django_fsm_log/migrations", ".tox", "build"] |
Oops, something went wrong.