Thank you! Not sure how to work it just yet though. do I replace x
with user?  i tried this:

results = results.sort(key=lambda x: x.last_login, reverse=True)

and got an error  that the Profile object didn't have the attribute
last_login

On Feb 11, 8:36 pm, Shawn Milochik <[email protected]> wrote:
> Something like this:
>
> key = lambda x: x.last_login

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to