Commit | Line | Data |
---|---|---|
2f062660 CM |
1 | from django.contrib import admin |
2 | ||
3 | from . import models | |
4 | ||
5 | ||
6 | class NewsAdmin(admin.ModelAdmin): | |
b6ba790e | 7 | list_display = ['title', 'group', 'author', 'expiration', 'restricted', 'attached_event'] |
2f062660 CM |
8 | list_filter = ['group', 'author'] |
9 | search_fields = ['group__name', 'title', 'content', 'author__first_name', 'author__last_name', 'contacts'] | |
10 | ||
11 | admin.site.register(models.News, NewsAdmin) |