Re: custom distinct() method

2008-12-12 Thread jamesjacksonn...@gmail.com
Russell, > Song.objects.values('artist').distinct(). I'm nothing less than extremely thankful for a great support! Wish that all would go well for You! best regards, james --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: custom distinct() method

2008-12-10 Thread jamesjacksonn...@gmail.com
Dear Russell, it's an honor to receive advices from a such a django guru as You are - thanks for devoting your time. > First off - patience. Only 10 hours passed between your original > request and your repeat. This is an international mailing list, we're > spread all over the globe, and we're

Re: custom distinct() method

2008-12-09 Thread jamesjacksonn...@gmail.com
please, maybe anyone now how to perform distinct() filtering for certain attribute(column), not the whole objects(rows)? :) In case not - please tell me what's the best practice when coming to a situation when django orm is not powerfull enough. Can writting custom sql queries become a serious

custom distinct() method

2008-12-08 Thread jamesjacksonn...@gmail.com
Here comes the question about the proper usage of queryset's distinct () method. As i have a queryset model.objects.filter (column='name').distinct() , the distinct method is applied to whole objects, but i'd like it to be applied to column. Django makes SQL query "SELECT DISTINCT column,