Re: custom query unique and ordered

2009-12-01 Thread John M
I would be easier to see it as a django table, but you'll need to checkout the distinct() feature of the queryset http://docs.djangoproject.com/en/dev/ref/models/querysets/#distinct But yes, I'd say it's possible. J On Nov 30, 4:10 pm, Ali Rıza Keleş wrote: > Hi all, >

custom query unique and ordered

2009-11-30 Thread Ali Rıza Keleş
Hi all, I need a little custom db query. My db table with sample data: id content_id author_id order is_public 1 68 1 1 1 3 189 2 2 1 4 154 2