news - Adds an optionnal linked event to the model
[xnet] / xnet / news / admin.py
CommitLineData
2f062660
CM
1from django.contrib import admin
2
3from . import models
4
5
6class 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
11admin.site.register(models.News, NewsAdmin)