Changes between Initial Version and Version 1 of Ticket #35585


Ignore:
Timestamp:
Jul 8, 2024, 9:59:14 AM (3 months ago)
Author:
Flavio Curella
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35585 – Description

    initial v1  
    11The `has_results` method of the `Query` class (in `django/db/models/sql/query.py`), passes the `using` argument to the `exists()` method:
    22
    3 ```python
     3{{{
    44    def has_results(self, using):
    55        q = self.exists(using)
    66        compiler = q.get_compiler(using=using)
    77        return compiler.has_results()
    8 ```
     8}}}
     9
    910
    1011but the signature of the `exists` method does not accept an argument to select the db connection. It only accepts an argument to limit the rows it should fetch:
    1112
    12 ```python
     13{{{
    1314    def exists(self, limit=True):
    1415    # ... snip ...
    15 ```
     16}}}
Back to Top