news - Adds an optionnal linked event to the model
[xnet] / xnet / news / admin.py
index d7cae64..69224ac 100644 (file)
@@ -4,7 +4,7 @@ from . import models
 
 
 class NewsAdmin(admin.ModelAdmin):
-    list_display = ['title', 'group', 'author', 'expiration', 'restricted']
+    list_display = ['title', 'group', 'author', 'expiration', 'restricted', 'attached_event']
     list_filter = ['group', 'author']
     search_fields = ['group__name', 'title', 'content', 'author__first_name', 'author__last_name', 'contacts']