MCPcopy
hub / github.com/django/django / can_filter

Method can_filter

django/db/models/sql/query.py:2223–2230  ·  view source on GitHub ↗

Return True if adding filters to this instance is still possible. Typically, this means no limits or offsets have been put on the results.

(self)

Source from the content-addressed store, hash-verified

2221 return self.high_mark is not None and (self.high_mark - self.low_mark) == 1
2222
2223 def can_filter(self):
2224 """
2225 Return True if adding filters to this instance is still possible.
2226
2227 Typically, this means no limits or offsets have been put on the
2228 results.
2229 """
2230 return not self.is_sliced
2231
2232 def clear_select_clause(self):
2233 """Remove all fields from SELECT clause."""

Callers 3

__or__Method · 0.80
__xor__Method · 0.80
getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected