Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
""
"
2
This example shows how relations between models especially unique field work.
3
4
Key points in this example are use of ForeignKeyField and OneToOneField has to_field.
Callers
nothing calls this directly
Calls
2
run_async
Function · 0.90
run
Function · 0.70
Tested by
no test coverage detected