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

Method exclude

tortoise/queryset.py:439–443  ·  view source on GitHub ↗

Same as .filter(), but with appends all args with NOT

(self, *args: Q, **kwargs: Any)

Source from the content-addressed store, hash-verified

437 return self._filter_or_exclude(negate=False, *args, **kwargs)
438
439 def exclude(self, *args: Q, **kwargs: Any) -> QuerySet[MODEL]:
440 """
441 Same as .filter(), but with appends all args with NOT
442 """
443 return self._filter_or_exclude(negate=True, *args, **kwargs)
444
445 def _parse_orderings(
446 self, orderings: tuple[str, ...], reverse=False

Callers

nothing calls this directly

Calls 1

_filter_or_excludeMethod · 0.95

Tested by

no test coverage detected