Re: Sort by attribute not in database

2010-02-06 Thread ChrisC
On 5 Feb, 21:21, Peter Herndon wrote: > Never forget, Django is Python.  One way to do what you need would be to > implement the __cmp__ special method on your Computer class.  Then, if you > make e.g. a list out of the results of your QuerySet, you can call sort() on >

Sort by attribute not in database

2010-02-05 Thread ChrisC
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