1👍
It is possible for multiple relationships between two objects to exist in your through
table. This can have surprising results when fetching related items, however, as a.b_set.all()
will contain multiple copies of the item from B
where there are multiple relationships. If this is not desired, then you can use a.b_set.all().distinct()
to remove the duplicate items.
👤TimD
Source:stackexchange.com