Good afternoon, there is a queryset, you need to remove duplicates from it:
example = models.Object.objects.values('name', 'photo__name').distinct()
we have a join, as a result we need to get that the name and photo__name do not have the same values, how to implement it using Django ORM? Thank you!