We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running Model.objects.update(), safe delete filter is not applied.
Model.objects.update()
In case of .update (Ref: Django repo), the SafeDelete query class is replaced by UpdateQuery during query chain.
.update
SafeDelete
UpdateQuery
Exact line which replaces the class
So when get_compiler is called, SafeDeleteQuery.get_compiler is not called. (Introduced in #160 )
get_compiler
SafeDeleteQuery.get_compiler
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem Statement
When running
Model.objects.update()
, safe delete filter is not applied.Reason
In case of
.update
(Ref: Django repo), theSafeDelete
query class is replaced byUpdateQuery
during query chain.Exact line which replaces the class
So when
get_compiler
is called,SafeDeleteQuery.get_compiler
is not called. (Introduced in #160 )The text was updated successfully, but these errors were encountered: