diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-05 02:34:12 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-05 02:34:12 -0400 |
commit | 66bf778fbac0736272c03870d996a7d14d528b8d (patch) | |
tree | 0fe20129fd1943a7838455f9524fd56991eea09d | |
parent | 2aee5589e90cd11edb016e2b96dd84567a4630d2 (diff) | |
download | askbot-66bf778fbac0736272c03870d996a7d14d528b8d.tar.gz askbot-66bf778fbac0736272c03870d996a7d14d528b8d.tar.bz2 askbot-66bf778fbac0736272c03870d996a7d14d528b8d.zip |
most recently edited threads are on top
-rw-r--r-- | group_messaging/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/group_messaging/views.py b/group_messaging/views.py index e503c741..357c6457 100644 --- a/group_messaging/views.py +++ b/group_messaging/views.py @@ -164,6 +164,8 @@ class ThreadsList(InboxView): sender=sender ) + threads = threads.order_by('-last_active_at') + #for each thread we need to know if there is something #unread for the user - to mark "new" threads as bold threads_data = dict() |