On Tue, 2009-08-11 at 00:29 -0700, Harish wrote:
> Hi Friends,
> 
> According to the django tutorial:
> "You can click on the column headers to sort by those values -- except
> in the case of the was_published_today header, because sorting by the
> output of an arbitrary method is not supported. "
> 
> 
> Is there any work around for this?

Sorting is done at the database level. You can't pass arbitrary Python
code through to the database layer, which is why that restriction is in
place.

Regards,
Malcolm




--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to