Changes between Version 3 and Version 4 of Ticket #32548, comment 6
- Timestamp:
- Mar 15, 2021, 7:33:22 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32548, comment 6
v3 v4 6 6 7 7 Edit: To clarify on my future work, I intend to add `.empty()` to detect nested empty Q objects -- such as `Q(Q())` -- and remove them from logical operations. This would currently cause a regression in `test_boolean_expression_combined_with_empty_Q`. Ultimately the goal is to add robust implementations of `Q.any()` and `Q.all()` that can't return empty Q objects that accidentally leak the entire table https://forum.djangoproject.com/t/improving-q-objects-with-true-false-and-none/851/9 8 9 Edit 2: Patches are up. https://code.djangoproject.com/ticket/32549 and https://code.djangoproject.com/ticket/32554