pihentagy
unread,Jun 26, 2009, 11:35:13 AM6/26/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi!
I am developing a django app, which will be installed at multiple
places with different configuration.
It has some models, and list views.
I store in a config dict the fields/methods to be displayed, and I'd
like to offer sorting (automagically for all fields, where possible).
My big problem is that I cannot verify, wheter for eg.:
'item__price_display' is a valid argument to sort by. The only way is
to create a filter query, and force executing it (by getting the first
element for eg.), but that would add much extra queries and seems
unconvenient.
So basically I'd like to have a generic list view with configurable
columns AND automagic sorting links on columns where possible (without
extra db queries)
Is it possible?
thanks
Gergo