summaryrefslogtreecommitdiff
path: root/news/admin.py
blob: 1b7de1d8b7eafd7666acc5d2e2aeabd50c6f506c (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', 'last_modified')
    list_filter = ('postdate', 'author')
    search_fields = ('title', 'content')

admin.site.register(News, NewsAdmin)