Re: Custom change list and list_display

2008-10-31 Thread Karen Tracey
On Fri, Oct 31, 2008 at 10:24 AM, Fabio Natali <[EMAIL PROTECTED]>wrote: > > Rajesh Dhawan wrote: > [...] > > > What's more, how can I make those callables columns sortable > > > within the change list page? I'm working with trunk. I read this: > > > http://code.djangoproject.com/changeset/9211

Re: Custom change list and list_display

2008-10-31 Thread Fabio Natali
Karen Tracey wrote: [...] > > Ok, we can't sort on callable columns. Anyway that's a pity... > The sorting is done at the database level (SQL ORDER BY), as is the > pagination (SQL OFFSET & LIMIT), so it is efficient (DBs are optimized to do > these things efficiently). Karen thank you very

Re: Custom change list and list_display

2008-10-31 Thread Fabio Natali
Rajesh Dhawan wrote: [...] > > What's more, how can I make those callables columns sortable > > within the change list page? I'm working with trunk. I read this: > > http://code.djangoproject.com/changeset/9211 Does this mean that I > > can add some callable and then alphabetically order them? >

Re: Custom change list and list_display

2008-10-29 Thread Fabio Natali
Rajesh Dhawan wrote: > Hi Fabio, > > > I have to create a summary page for one of my models. With "summary > > page" I mean a table where each item of my model is listed along with > > its properties/values. [...] Rajesh, your explanation is very clear and full of details. Thank you so much!

Re: Custom change list and list_display

2008-10-29 Thread Rajesh Dhawan
Hi Fabio, > I have to create a summary page for one of my models. With "summary > page" I mean a table where each item of my model is listed along with > its properties/values. > > Some of those properties/values are fields of the db itself, while > other values are calculated on the fly (maybe

Custom change list and list_display

2008-10-29 Thread Fabio Natali
Hi everybody! I have to create a summary page for one of my models. With "summary page" I mean a table where each item of my model is listed along with its properties/values. Some of those properties/values are fields of the db itself, while other values are calculated on the fly (maybe with a