diff options
-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 0000000..1fdd534 --- /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) |