MCPcopy
hub / github.com/django/django / single_alias

Method single_alias

django/db/models/sql/compiler.py:1974–1977  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1972class SQLDeleteCompiler(SQLCompiler):
1973 @cached_property
1974 def single_alias(self):
1975 # Ensure base table is in aliases.
1976 self.query.get_initial_alias()
1977 return sum(self.query.alias_refcount[t] > 0 for t in self.query.alias_map) == 1
1978
1979 @classmethod
1980 def _expr_refs_base_model(cls, expr, base_model):

Callers

nothing calls this directly

Calls 1

get_initial_aliasMethod · 0.80

Tested by

no test coverage detected