-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Not logging source state #37
Comments
I agree with your analysis, let's fix this. |
@jonasvp |
Somehow related: #74 (logging the state field's name) |
This also renames `state` to `target_state` to make it more explicit. Using `state` still works except when filtering using the ORM.
This also renames `state` to `target_state` to make it more explicit. Using `state` still works except when filtering using the ORM.
This also renames `state` to `target_state` to make it more explicit. Using `state` still works except when filtering using the ORM.
This also renames `state` to `target_state` to make it more explicit. Using `state` still works except when filtering using the ORM.
This also renames `state` to `target_state` to make it more explicit. Using `state` still works except when filtering using the ORM.
This also renames `state` to `target_state` to make it more explicit. Using `state` still works except when filtering using the ORM.
Sorry, took me a while to figure out how to run the tests locally. @ticosax The PR is now ready for review, the tests are passing and coverage is up (the coverage report in the PR does not seem to update) |
feat: log source state on transitions #37
Merged in 0480d7e, thanks! |
I'm not sure why the
target
state of the transition is logged but not thesource
state. Thetarget
can be inferred from the transition, since every transition can only have one target. Thesource
is ambiguous, however, since it can be a list of states (https://github.com/kmmbvnr/django-fsm#usage).I'll be happy to provide a pull request for saving the
source
to theStateLog
model as well - or is there a reason it's currently not being logged?The text was updated successfully, but these errors were encountered: