Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ test_basic_alias
Method
test_basic_alias
tests/annotations/tests.py:1357–1359 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1355
)
1356
1357
def
test_basic_alias(self):
1358
qs = Book.objects.alias(is_book=Value(1))
1359
self.assertIs(hasattr(qs.first(),
"is_book"
), False)
1360
1361
def
test_basic_alias_annotation(self):
1362
qs = Book.objects.alias(
Callers
nothing calls this directly
Calls
3
Value
Class · 0.90
alias
Method · 0.80
first
Method · 0.80
Tested by
no test coverage detected