A way to get handle to the generated query for terminal queryset methods
|Reported by:||akaariai||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.4|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When debugging or testing generated ORM queries it is often useful to get a handle to generated queryset from terminal qs methods (like .update() or .aggregate()) instead of executing the query.
The attached proof-of-concept shows a way to achieve this.
Change History (4)
Changed 3 years ago by akaariai
comment:1 Changed 2 years ago by jwmayfield
- Cc jason@… added
- Triage Stage changed from Unreviewed to Design decision needed
comment:2 Changed 2 years ago by jwmayfield
- Cc jason@… removed
- Triage Stage changed from Design decision needed to Unreviewed