diff options
Diffstat (limited to 'sublab_project/news')
-rw-r--r-- | sublab_project/news/admin.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sublab_project/news/admin.py b/sublab_project/news/admin.py index ffead60..0a145f5 100644 --- a/sublab_project/news/admin.py +++ b/sublab_project/news/admin.py @@ -6,6 +6,9 @@ from news.models import News class NewsAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('title',)} list_display = ('title', 'date_created', 'date_updated') + list_filter = ('author',) + search_fields = ['title', 'content'] + date_hierarchy = 'date_updated' def save_model(self, request, obj, form, change): if not obj.id: |