Add views count to admin list

This commit is contained in:
Gabriel Augendre 2020-08-26 13:28:31 +02:00
parent c3218df28e
commit 74e93762ca
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -20,6 +20,7 @@ class ArticleAdmin(admin.ModelAdmin):
"created_at", "created_at",
"published_at", "published_at",
"updated_at", "updated_at",
"views_count",
] ]
list_display_links = ["title"] list_display_links = ["title"]
list_filter = ["status"] list_filter = ["status"]