Avatar ·

Delete duplicates from Queryset

📁 django

Good afternoon, there is a Queryset, you need to remove duplicates from it:

Example = Models.objects.values('Name', 'Photo__name').distinct()

We have a join, as a result, you need to get Name and Photo__name without identical values, how to implement it using Django ORM? Thanks!