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

Null Object_ID #181

Open
dwasyl opened this issue May 16, 2023 · 1 comment
Open

Null Object_ID #181

dwasyl opened this issue May 16, 2023 · 1 comment

Comments

@dwasyl
Copy link

dwasyl commented May 16, 2023

One of the situations I ran into is running trial transitions on non-permanent objects (i.e. not saved in the DB only memory) so they have no pk as of yet, however the fsm-log signal/creation that runs doesn't check for a pk before running manager.create(**values).

Is there a way of disabling the fsm_log decorator when there is no pk or some other way of manually saving without it running?

Alternatively, would a change that checks for a pk before running create() be a reasonable adjustment?

Just after posting, I realized this is happening on my transition methods that aren't even decorated by the fsm_log decorator so I'm at a bit of a loss as to how to disable it.

@ticosax
Copy link
Member

ticosax commented May 17, 2023

Please can you submit a test reproducing your use case ? that will be helpful. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants