django.contrib.comments could offer a config option for default order
|Reported by:||FunkyBob||Owned by:||FunkyBob|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
By default, comments are ordered by oldest-post-first, except in Feed, where it's newest first.
Whilst it's possible to change this by replacing the comment model with your own, this seems a little excessive when a single setting (say, COMMENTS_ORDER ) could make it trivial to change.
The attached patch allows you to either specify 'reverse', which uses ('-submit_date'), or supply your own list/tuple of sorting.
Change History (4)
Changed 5 years ago by FunkyBob
comment:1 Changed 5 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed