Fix admin articles ordering

This commit is contained in:
Gabriel Augendre 2020-08-18 21:29:52 +02:00
parent bdfa7b731c
commit 6e3daeac3b

View file

@ -12,6 +12,7 @@ admin.site.register(User, UserAdmin)
@register(Article) @register(Article)
class ArticleAdmin(admin.ModelAdmin): class ArticleAdmin(admin.ModelAdmin):
ordering = ["status", "-published_at"]
list_display = [ list_display = [
"title", "title",
"status", "status",