On 5/7/07, Pythoni <[EMAIL PROTECTED]> wrote: > > I need to find distinct records form my `discussions` table. > I can use > discussions.get_values(fields=['Subject'],order_by=['Pub_date'],distinct=True) > > and it works. But I would like to find distinct records with > get_list not with get_values, because i need to sent the results to > paginator, > > Is that possible to use DISTINCT with get_list?
I have a vague recollection that it is possible, but I could be very wrong. I haven't used the 0.91 DB-api in over 18 months. As a warning - the pre-0.95, pre-magic-removal APIs are very much deprecated. You're going to find it increasingly difficult to get answers to questions. Relatively few people in the Django community have ever used the pre-magic-removal APIs, and even less will remember how to use them. The only bugs that will be fixed are critical data-loss inducing bugs; there certainly won't be any feature improvements to that API. I realise that it is inconvenient, but it would be well worth the effort to invest a little time in porting your code over to the new API. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

