[Django]-Django ORM: Joining QuerySets

0👍

You can join (in the sense of union) querysets with the | operator, as long as the querysets query the same model.

However, it sounds like you want something like PostContent.objects.order_by('version').distinct('language'); as you can’t quite do that in 1.3.1, consider using values in combination with distinct() to get the effect you need.

👤Marcin

Leave a comment