Changes between Initial Version and Version 1 of Ticket #35585
- Timestamp:
- Jul 8, 2024, 9:59:14 AM (4 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35585 – Description
initial v1 1 1 The `has_results` method of the `Query` class (in `django/db/models/sql/query.py`), passes the `using` argument to the `exists()` method: 2 2 3 ```python 3 {{{ 4 4 def has_results(self, using): 5 5 q = self.exists(using) 6 6 compiler = q.get_compiler(using=using) 7 7 return compiler.has_results() 8 ``` 8 }}} 9 9 10 10 11 but 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: 11 12 12 ```python 13 {{{ 13 14 def exists(self, limit=True): 14 15 # ... snip ... 15 ``` 16 }}}