Changes between Initial Version and Version 1 of Ticket #34450, comment 3


Ignore:
Timestamp:
Mar 31, 2023, 8:26:40 AM (21 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34450, comment 3

    initial v1  
    1 `QuerySet.filter` results in a single `Query.add_q` so I'm not sure that comparing the effect of two distinct `add_q` call should be the area of focus here as the latter is more alike to `filter()` chaining calls (e.g. `QuerySet.filter().filter()`) which has different semantic when dealing with multi-valued relationships.
     1`QuerySet.filter` results [https://github.com/django/django/blob/066aabcb77579cf8d549119c860d11cd15e3eef1/django/db/models/query.py#LL1463C28-L1463C28 in a single] `Query.add_q` so I'm not sure that comparing the effect of two distinct `add_q` call should be the area of focus here as the latter is more alike to `filter()` chaining calls (e.g. `QuerySet.filter().filter()`) which has different semantic when dealing with multi-valued relationships.
Back to Top