diff options
author | luxagraf <sng@luxagraf> | 2021-01-30 19:47:46 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-01-30 19:47:46 -0500 |
commit | 513b00c597f3dde97aa3714324dedde49befb9e6 (patch) | |
tree | 5e177ffd29fa71b3f7a650abac5ac3e9f5223447 /app/lttr/views.py | |
parent | 4f15cf6cee39a0d9f24ea3373d79e13fc4bc3fac (diff) |
lttr: fixed date order in list views
Diffstat (limited to 'app/lttr/views.py')
-rw-r--r-- | app/lttr/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lttr/views.py b/app/lttr/views.py index 7a8b596..9682528 100644 --- a/app/lttr/views.py +++ b/app/lttr/views.py @@ -48,7 +48,7 @@ class NewsletterListView(ListView): def get_queryset(self): queryset = super(NewsletterListView, self).get_queryset() - return queryset.filter(newsletter__slug=self.kwargs['slug']) + return queryset.filter(newsletter__slug=self.kwargs['slug']).order_by('-pub_date') def get_context_data(self, **kwargs): context = super(NewsletterListView, self).get_context_data(**kwargs) |