This may be an easy question to answer, but I just can't seem to do
this.

I have a model called Computer which has a function (turned into an
attribute via the property builtin) which queries the local filesystem
to get a modification time.

ie.
Computer.object.all()[0].last_modified

returns a time

I want to sort by this time, but unfortunately there is no sort()
method on querysets and you cannot seem to order_by() on anything
other than table fields.

Putting the field into the database isn't an option as it is a quickly
changing variable.

Any help gratefully appreciated.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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