<commit_before>from __future__ import unicode_literals

from django.contrib import admin

from mezzanine_sermons.models import SermonSeries, Sermon, SermonFile


class SermonSeriesAdmin(admin.ModelAdmin):
    pass


class SermonFileInline(admin.StackedInline):
    model = SermonFile
    verbose_name = "File"
    verbose_name_plural = "Files"


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


admin.site.register(SermonSeries, SermonSeriesAdmin)
admin.site.register(Sermon, SermonAdmin)
<commit_msg>Bug fix admin search field for sermons, and add admin search field for sermon_series<commit_after>from __future__ import unicode_literals

from django.contrib import admin

from mezzanine_sermons.models import SermonSeries, Sermon, SermonFile


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


class SermonFileInline(admin.StackedInline):
    model = SermonFile
    verbose_name = "File"
    verbose_name_plural = "Files"


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


admin.site.register(SermonSeries, SermonSeriesAdmin)
admin.site.register(Sermon, SermonAdmin)

{'fraction_non_alphanumeric': 0.09285187914517318, 'fraction_numerical': 0.0, 'mean_word_length': 6.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5971735', 'n_tokens_mistral': 456, 'n_tokens_neox': 443, 'n_words': 94}