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

File relations_with_unique.py

examples/relations_with_unique.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2This example shows how relations between models especially unique field work.
3
4Key points in this example are use of ForeignKeyField and OneToOneField has to_field.

Callers

nothing calls this directly

Calls 2

run_asyncFunction · 0.90
runFunction · 0.70

Tested by

no test coverage detected