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

patch method to bypass JsonGuardProvider's guardUpdate for primary key columns #1

Open
georgebarbarosie opened this issue Jul 30, 2021 · 0 comments

Comments

@georgebarbarosie
Copy link
Collaborator

When called with a payload consisting only of the primary key, __apply_changes will not call context guard's guardUpdate.

# assuming MyClass has a primary key property pkey
myObj = dbsession.query(MyClass).get('key 1')
myObj.apply_changes(dict(pkey='key 2'), context=guardInstance)
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

1 participant