Opened 4 years ago

Closed 4 years ago

#32333 closed Uncategorized (invalid)

_raw_delete won't work as expected on union'ed QuerySets

Reported by: Faham Negini Owned by: nobody
Component: Database layer (models, ORM) Version: 2.2
Severity: Normal Keywords: _raw_delete, union
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have multiple QuerySets combined into one through union, calling _raw_delete on this combined QuerySet won't delete the union result of all sub QuerySets.

Q1.union(Q2)._raw_delete() removes only results of Q1 while it's expected to remove results of Q1.union(Q2)

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Resolution: invalid
Status: newclosed

_raw_delete() is an internal API, even calling QuerySet.delete() on combined queries is not supported.

Closing per TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top