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)
|
@register(Article)
|
||||||
class ArticleAdmin(admin.ModelAdmin):
|
class ArticleAdmin(admin.ModelAdmin):
|
||||||
|
ordering = ["status", "-published_at"]
|
||||||
list_display = [
|
list_display = [
|
||||||
"title",
|
"title",
|
||||||
"status",
|
"status",
|
||||||
|
|
Reference in a new issue