Changes between Initial Version and Version 1 of Ticket #36388, comment 13


Ignore:
Timestamp:
May 15, 2025, 3:10:02 PM (4 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36388, comment 13

    initial v1  
    11No, the branch you linked is gated by a `if isinstance(self, EmptyQuerySet)` and `qs` is a list of all non-empty querysets. Django is able to detect when a queryset cannot match any rows (the most common example is `filter(pk=[])`) and the logic you linked deals with this case.
    22
    3 What I mean is that if the `*other_qs` args capture is empty then you can immediately return as `some_set OR not other set` means `some_set`.
     3What I mean is that if the `*other_qs` args capture is empty then you can immediately return as `some_set OR *other_sets` means `some_set`.
Back to Top