Re: Add "order_by" support for extra columns on Admin Site

2008-09-27 Thread Yuri Baburov
On Tue, Sep 23, 2008 at 8:38 PM, TĂșlio Paiva <[EMAIL PROTECTED]> wrote: > Hello! Hi > Before I wrote this e-mail, I look at the tickets but I haven't found > none with this approach. Cause this functionality has been available for long time without any patches. You should have looked into docs. h

Add "order_by" support for extra columns on Admin Site

2008-09-23 Thread TĂșlio Paiva
Hello! Before I wrote this e-mail, I look at the tickets but I haven't found none with this approach. I have this models: class ArticleManager(models.Manager): def get_query_set(self): return super(ArticleManager, self).get_query_set().extra( select={'comments_count': 's