[Answered ]-Django Model queries with relationships. How to do the right join

1👍

This is not that bad, considering that it will probably be executed as one query, because of the lazy queryset evaluations. You can skip the .all() if you already have .filter().

However, there is a more convenient way to do this, using lookups that span relationships.:

auction_objects = Auction.objects.filter(auction_watchlist__user_id=request.user.id)

Leave a comment