Avatar ·

Delete duplicates from Queryset

📁 django

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

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

We have a jain, as a result, you need to get Name and Photo__name no identical values, how to realize it using Django ORM? Space!