bornhack-website/news/admin.py

10 lines
218 B
Python
Raw Normal View History

2016-05-30 19:36:14 +00:00
from django.contrib import admin
from . import models
@admin.register(models.NewsItem)
class NewsItemModelAdmin(admin.ModelAdmin):
list_display = ['title', 'public', 'published_at']
list_filter = ['public']