diff options
Diffstat (limited to 'news/admin.py')
-rw-r--r-- | news/admin.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/news/admin.py b/news/admin.py new file mode 100644 index 00000000..1fdd534c --- /dev/null +++ b/news/admin.py @@ -0,0 +1,10 @@ +from django.contrib import admin + +from .models import News + +class NewsAdmin(admin.ModelAdmin): + list_display = ('title', 'author', 'postdate') + list_filter = ('author', 'postdate') + search_fields = ('title', 'content') + +admin.site.register(News, NewsAdmin) |