Questions about ormar.ForeignKey() #299
Unanswered
ProgrammerPlus1998
asked this question in
Q&A
Replies: 1 comment
-
Yes, as of now relations always lead to the primary key of the related model. That covers 90% of the use cases (well with composite pks (in development) probably even 95-99%), hence I decided to stick with that to simplify the build. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I read the help document, this method only passes a table name, but the sql table needs to be associated with a certain field of the table.
Does
ormar.ForeignKey()
have a default association?What if I want to associate a key specified in another table?
Beta Was this translation helpful? Give feedback.
All reactions