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

admin.site.register(News, NewsAdmin)