summaryrefslogtreecommitdiffstats
path: root/group_messaging
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-10-05 02:34:12 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-10-05 02:34:12 -0400
commit66bf778fbac0736272c03870d996a7d14d528b8d (patch)
tree0fe20129fd1943a7838455f9524fd56991eea09d /group_messaging
parent2aee5589e90cd11edb016e2b96dd84567a4630d2 (diff)
downloadaskbot-66bf778fbac0736272c03870d996a7d14d528b8d.tar.gz
askbot-66bf778fbac0736272c03870d996a7d14d528b8d.tar.bz2
askbot-66bf778fbac0736272c03870d996a7d14d528b8d.zip
most recently edited threads are on top
Diffstat (limited to 'group_messaging')
-rw-r--r--group_messaging/views.py2
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()