Commit 9c69f268 authored by Jayson Lim's avatar Jayson Lim

Merge branch 'announcementBoard' into 'main'

Finalized ReactionAdmin customization

See merge request !11
parents 1e0955f2 45bfd96f
...@@ -23,6 +23,10 @@ class AnnouncementAdmin(admin.ModelAdmin): ...@@ -23,6 +23,10 @@ class AnnouncementAdmin(admin.ModelAdmin):
class ReactionAdmin(admin.ModelAdmin): class ReactionAdmin(admin.ModelAdmin):
model = Reaction model = Reaction
list_display = ('name', 'tally', 'annoucement')
search_fields = ('name', 'annoucement')
list_filter = ('name', 'annoucement')
admin.site.register(Announcement, AnnouncementAdmin) admin.site.register(Announcement, AnnouncementAdmin)
admin.site.register(Reaction, ReactionAdmin) admin.site.register(Reaction, ReactionAdmin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment