summaryrefslogtreecommitdiff
path: root/news/admin.py
blob: 1fdd534cf477d99dabd52ca79545726485984ef4 (plain)
1
2
3
4
5
6
7
8
9
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)