I have User
(django's default model) and Interest
.
They are related to eachother through two many-to-many through models, so track additional data on the relationships.
One model, Selected
, tracks which interests a user wants to be associated with.
The other model, Recommended
, lists interests to suggest to the user.
Give a User
object, how can I get to either one? user.interest_set.all()
returns interests via Selected
only. How can I specify which relation/through model to use?