From 6e3daeac3b91e144498eb1ff7a3b7bdd39b87f7a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 18 Aug 2020 21:29:52 +0200 Subject: [PATCH] Fix admin articles ordering --- articles/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/articles/admin.py b/articles/admin.py index f3eeae7..bc5fdcc 100644 --- a/articles/admin.py +++ b/articles/admin.py @@ -12,6 +12,7 @@ admin.site.register(User, UserAdmin) @register(Article) class ArticleAdmin(admin.ModelAdmin): + ordering = ["status", "-published_at"] list_display = [ "title", "status",