Skip to content

Commit

Permalink
Bug fix admin search field for sermons, and add admin search field fo…
Browse files Browse the repository at this point in the history
…r sermon_series
  • Loading branch information
philipsouthwell committed Jun 15, 2015
1 parent a4ed80d commit 1fc648e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mezzanine_sermons/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class SermonSeriesAdmin(admin.ModelAdmin):
pass
search_fields = ['title', 'bible_passage', 'description']


class SermonFileInline(admin.StackedInline):
Expand All @@ -16,7 +16,7 @@ class SermonFileInline(admin.StackedInline):


class SermonAdmin(admin.ModelAdmin):
search_fields = ['series', 'title', 'passage', 'preacher']
search_fields = ['series__title', 'series__bible_passage', 'series__description', 'title', 'passage', 'preacher']
inlines = [SermonFileInline, ]


Expand Down

0 comments on commit 1fc648e

Please sign in to comment.