Answer the question
In order to leave comments, you need to log in
How to use relations(foreign key, Many-to-many) in models?
I read the documentation on djbook, but I could not quite understand how it works. FK is one to many and M-to-M is many to many.
For example, there is a task to implement the ability to add friends or exchange messages. How can you do this with these relationships in models?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question