Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ has_limit_one
Method
has_limit_one
django/db/models/sql/query.py:2220–2221 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2218
return
self.low_mark != 0 or self.high_mark is not None
2219
2220
def
has_limit_one(self):
2221
return
self.high_mark is not None and (self.high_mark - self.low_mark) == 1
2222
2223
def
can_filter(self):
2224
""
"
Callers
1
get_prep_lookup
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected