Using mysql for backend DB. Querying all records from Database like:
ob = Shop.objects.all()
Here querying all records because need all the n number of columns values. Then come to the Question.
Want to get all the non duplicate records based on a certain column. Tried with Python SET function. But it deletes exact same records. I have records which are having same value in a particular column value but not same value in other columns.
Can some one share some idea hoe to do this with the help of Django ORM!!!