I'm attempting to get a unique list from a django sql query using the distinct() function, but it does not seem to filter the redundancies..
For example I do a query for Moby Dick and it returns the query set named results1 as... qset = (Q(title__icontains='MOBY DICK')) results1 = Titles.objects.filter(qset).distinct() results1 = [<Titles: MELVILLE, Herman. MOBY DICK. >, <Titles: MELVILLE, Herman. MOBY DICK. >, <Titles: MELVILLE, Herman. MOBY DICK. >, <Titles: MELVILLE, Herman. MOBY DICK. >, <Titles: MELVILLE, Herman. MOBY DICK. >, <Titles: MELVILLE, Herman. MOBY DICK. >] Even though I'm using the distinct function why does this return a list with redundancies? Is there any other way I can clear the redunencies from the results? Any suggestions appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---