Re: custom QerySet

2006-09-18 Thread skink
Malcolm Tredinnick wrote: > Not very easily at the moment, no. You would need to look at creating a > subclass of QuerySet and overriding the _get_sql_clause() method to add > in a GROUP BY clause. So it's not impossible, just inelegant (a lot of > code duplication involved). > > You can't even f

Re: custom QerySet

2006-09-18 Thread Malcolm Tredinnick
On Mon, 2006-09-18 at 02:58 -0700, skink wrote: > hi, > > Is there a way to create custom QuerySet returning some "COUNT(*)" on > some "GROUP BY" group? Not very easily at the moment, no. You would need to look at creating a subclass of QuerySet and overriding the _get_sql_clause() method to add

custom QerySet

2006-09-18 Thread skink
hi, Is there a way to create custom QuerySet returning some "COUNT(*)" on some "GROUP BY" group? I really need QuerySet since I need this for django.views.generic.list_detail.object_list. thanks, skink --~--~-~--~~~---~--~~ You received this message because you