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

Method deconstruct

tortoise/fields/relational.py:368–372  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

366 super().__init__(model_name, related_name, on_delete, unique=True, **kwargs)
367
368 def deconstruct(self) -> tuple[str, list[Any], dict[str, Any]]:
369 path, args, kwargs = super().deconstruct()
370 # unique=True is set implicitly by OneToOneField.__init__
371 kwargs.pop("unique", None)
372 return path, args, kwargs
373
374
375class BackwardOneToOneRelation(BackwardFKRelation[MODEL]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected