MCPcopy
hub / github.com/django/django / test_foreign_key_f

Method test_foreign_key_f

tests/queries/test_query.py:109–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 query.build_where(Q(creator__num__gt=2))
108
109 def test_foreign_key_f(self):
110 query = Query(Ranking)
111 with self.assertRaises(FieldError):
112 query.build_where(Q(rank__gt=F("author__num")))
113
114 def test_foreign_key_exclusive(self):
115 query = Query(ObjectC, alias_cols=False)

Callers

nothing calls this directly

Calls 4

build_whereMethod · 0.95
QueryClass · 0.90
QClass · 0.90
FClass · 0.90

Tested by

no test coverage detected