MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / ordering

Method ordering

tortoise/models.py:299–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297
298 @property
299 def ordering(self) -> tuple[tuple[str, Order], ...]:
300 if not self._ordering_validated:
301 unknown_fields = {f for f, _ in self._default_ordering} - self.fields
302 raise ConfigurationError(
303 f"Unknown fields {','.join(unknown_fields)} in "
304 f"default ordering for model {self._model.__name__}"
305 )
306 return self._default_ordering
307
308 def get_filter(self, key: str) -> FilterInfoDict:
309 return self.filters[key]

Callers

nothing calls this directly

Calls 1

ConfigurationErrorClass · 0.90

Tested by

no test coverage detected