8a3bd1ad8a
Add last modified date as a column, and fix up some other small display, sorting, and ordering issues. Signed-off-by: Dan McGee <dan@archlinux.org>
11 lines
283 B
Python
11 lines
283 B
Python
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)
|