From 67dcbeb03b35448bedb72c4ebe81dd6c0e6832e6 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Wed, 14 Aug 2024 10:14:51 +0200 Subject: [PATCH] =?UTF-8?q?feat(event):=20am=C3=A9lioration=20de=20l'admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lacommunaute/event/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lacommunaute/event/admin.py b/lacommunaute/event/admin.py index 0775d147a..807cfdbe6 100644 --- a/lacommunaute/event/admin.py +++ b/lacommunaute/event/admin.py @@ -5,6 +5,9 @@ class EventAdmin(admin.ModelAdmin): raw_id_fields = ("poster",) + list_display = ("name", "date", "poster") + list_filter = ("date",) + search_fields = ("name", "poster__email") admin.site.register(Event, EventAdmin)