On Jun 22, 2006, at 7:01 PM, Adrian Holovaty wrote: > On 6/22/06, momobear <[EMAIL PROTECTED]> wrote: >> hi, I use the generic view object_list to display my result, but >> now I >> want the result to be showed like the page in django admin-site, >> we can >> click the column to let it on desc or asc ordering, the admin-site >> seems complex to me, is there any easy solution? thanks. > > Hi momobear, > > The generic-views framework doesn't support ordering by arbitrary > fields like that. You'll have to write that functionality on your own. > > Adrian
Or, save yourself a bunch of time and just do it up with some nice JavaScript: http://www.kryogenix.org/code/browser/sorttable/ -Tyson --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---