Skip to content

Commit

Permalink
feat(event): amélioration de l'admin
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Aug 14, 2024
1 parent 8e0f35d commit 67dcbeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lacommunaute/event/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 67dcbeb

Please sign in to comment.