Open iamhssingh opened 1 month ago
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
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 )