<commit_before>from wagtail.contrib.modeladmin.options import ModelAdmin, ModelAdminGroup, modeladmin_register
from .models import Webinar

class WebinarAdmin(ModelAdmin):
    model = Webinar
    menu_icon = 'media'
    menu_label = 'Webinars'
    menu_order = 4000
    list_display = ('title', 'start', 'end', 'spaces_remaining')
    search_fields = ('title')

modeladmin_register(WebinarAdmin)
<commit_msg>Added trailing comma to make Webinar search work (#1253)<commit_after>from wagtail.contrib.modeladmin.options import ModelAdmin, ModelAdminGroup, modeladmin_register
from .models import Webinar


class WebinarAdmin(ModelAdmin):
    model = Webinar
    menu_icon = 'media'
    menu_label = 'Webinars'
    menu_order = 4000
    list_display = ('title', 'start', 'end', 'spaces_remaining')
    search_fields = ('title',) # trailing comma needed to make search work


modeladmin_register(WebinarAdmin)

{'fraction_non_alphanumeric': 0.09602649006622517, 'fraction_numerical': 0.013245033112582781, 'mean_word_length': 5.170068027210885, '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': '4119650', 'n_tokens_mistral': 292, 'n_tokens_neox': 275, 'n_words': 71}