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 <sh...@milochik.com> 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 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.