Commit 9aee6286d4c0ad2c1b46eb12e494bd92ba3f2719
1 parent
a6b3019c
Exists in
master
and in
39 other branches
Setting thread default ordering
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/super_archives/models.py
| @@ -124,6 +124,7 @@ class Thread(models.Model, HitCounterModelMixin): | @@ -124,6 +124,7 @@ class Thread(models.Model, HitCounterModelMixin): | ||
| 124 | verbose_name = _(u"Thread") | 124 | verbose_name = _(u"Thread") |
| 125 | verbose_name_plural = _(u"Threads") | 125 | verbose_name_plural = _(u"Threads") |
| 126 | unique_together = ('subject_token', 'mailinglist') | 126 | unique_together = ('subject_token', 'mailinglist') |
| 127 | + ordering = ('-latest_message__received_time', ) | ||
| 127 | 128 | ||
| 128 | @models.permalink | 129 | @models.permalink |
| 129 | def get_absolute_url(self): | 130 | def get_absolute_url(self): |