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

Method default

tests/testmodels.py:379–382  ·  view source on GitHub ↗
(self, obj: Any)

Source from the content-addressed store, hash-verified

377
378class IndexEncoder(DecimalEncoder):
379 def default(self, obj: Any) -> Any:
380 if isinstance(obj, Index):
381 return obj.describe()
382 return super().default(obj)
383
384
385class JSONFields(Model):

Callers 1

defaultMethod · 0.45

Calls 1

describeMethod · 0.45

Tested by

no test coverage detected