diff --git a/Django/blog/admin.py b/Django/blog/admin.py index eb46c76..ddbb8de 100644 --- a/Django/blog/admin.py +++ b/Django/blog/admin.py @@ -7,7 +7,7 @@ # 注册Post模型 @admin.register(Post) class PostAdmin(admin.ModelAdmin): - list_display = ('id', 'title', 'author', 'pub_date', 'featured', 'theme') + list_display = ( 'title','id', 'author', 'pub_date', 'featured', 'theme') search_fields = ('title', 'author') list_filter = ('featured', 'theme', 'pub_date') date_hierarchy = 'pub_date'