Fix admin articles ordering
This commit is contained in:
parent
bdfa7b731c
commit
6e3daeac3b
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ admin.site.register(User, UserAdmin)
|
|||
|
||||
@register(Article)
|
||||
class ArticleAdmin(admin.ModelAdmin):
|
||||
ordering = ["status", "-published_at"]
|
||||
list_display = [
|
||||
"title",
|
||||
"status",
|
||||
|
|
Reference in a new issue