MCPcopy
hub / github.com/django/django / raw

Method raw

django/db/models/query.py:1484–1496  ·  view source on GitHub ↗
(self, raw_query, params=(), translations=None, using=None)

Source from the content-addressed store, hash-verified

1482 ##################################################
1483
1484 def raw(self, raw_query, params=(), translations=None, using=None):
1485 if using is None:
1486 using = self.db
1487 qs = RawQuerySet(
1488 raw_query,
1489 model=self.model,
1490 params=params,
1491 translations=translations,
1492 using=using,
1493 fetch_mode=self._fetch_mode,
1494 )
1495 qs._prefetch_related_lookups = self._prefetch_related_lookups[:]
1496 return qs
1497
1498 def _values(self, *fields, **expressions):
1499 clone = self._chain()

Callers

nothing calls this directly

Calls 1

RawQuerySetClass · 0.85

Tested by

no test coverage detected