Updated search_fields under AnnouncementAdmin

parent b48715bf
...@@ -5,7 +5,7 @@ from .models import Announcement, Reaction ...@@ -5,7 +5,7 @@ from .models import Announcement, Reaction
class AnnouncementAdmin(admin.ModelAdmin): class AnnouncementAdmin(admin.ModelAdmin):
model = Announcement model = Announcement
list_display = ('title', 'author', 'pub_datetime') list_display = ('title', 'author', 'pub_datetime')
search_fields = ('author',) search_fields = ('title', 'author',)
list_filter = ['author', 'pub_datetime'] list_filter = ['author', 'pub_datetime']
class ReactionAdmin(admin.ModelAdmin): class ReactionAdmin(admin.ModelAdmin):
......
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