On Thu, 2007-10-25 at 12:52 +1000, Malcolm Tredinnick wrote: [...] > Use my_queryset.values(...).distinct(). However, be aware of bug #2939 > and the fact that you can only use one value in the values() call on > trunk. Except possibly on MySQL, this would fail: > > my_queryset.values('foo', 'bar').distinct()
This is rubbish. I wasn't concentrating. Multiple values() with distinct() does work. It only fails once you also add count() on SQLite and PostgreSQL. Regards, Malcolm -- If it walks out of your refrigerator, LET IT GO!! http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---