[Django]-Django manytomany through

6👍

The through table is linked by standard ForeignKeys, so you do a normal ForeignKey lookup. Don’t forget that there’s a comment for each bikeuser, ie one for each bike/user pairing.

for myBikeUser in myBike.bikeuser_set.all():
    print myBikeUser.comment, myBikeUser.user.first_name

Leave a comment