I have the following models in Django (simplified for brevity):
class DistinctWord(models.Model): ... class Word(models.Model): distinct_word = models.F
How about (given your queryset of uw): [obj.words.first() for obj in uw]
uw
[obj.words.first() for obj in uw]