Modified files
app/admin.py
---
+++
@@ -2,5 +2,14 @@
from app.models import Article, UserProfile
-admin.site.register(Article)
+class ArticleAdmin(admin.ModelAdmin):
+ list_display = ("title", "word_count", "status", "created_at", "updated_at")
+ list_filter = ("status",)
+ search_fields = ("title", "content")
+ date_hierarchy = "created_at"
+ ordering = ("created_at",)
+ readonly_fields = ("word_count", "created_at", "updated_at")
+
+
+admin.site.register(Article, ArticleAdmin)
admin.site.register(UserProfile)