from django.contrib import admin
from .models import Event, EventData, EventDetail, Person


class EventDataAdmin(admin.ModelAdmin):
    search_fields = ['runner']


class PersonAdmin(admin.ModelAdmin):
    search_fields = ['last_name']


admin.site.register(Person, PersonAdmin)
admin.site.register(Event)
admin.site.register(EventData, EventDataAdmin)
admin.site.register(EventDetail)

2688c2e7e35872777bea98bda6dd0a39318e3f50
<mask token>


class EventDataAdmin(admin.ModelAdmin):
    <mask token>


class PersonAdmin(admin.ModelAdmin):
    search_fields = ['last_name']


<mask token>

<mask token>


class EventDataAdmin(admin.ModelAdmin):
    search_fields = ['runner']


class PersonAdmin(admin.ModelAdmin):
    search_fields = ['last_name']


<mask token>

<mask token>


class EventDataAdmin(admin.ModelAdmin):
    search_fields = ['runner']


class PersonAdmin(admin.ModelAdmin):
    search_fields = ['last_name']


admin.site.register(Person, PersonAdmin)
admin.site.register(Event)
admin.site.register(EventData, EventDataAdmin)
admin.site.register(EventDetail)

from django.contrib import admin
from .models import Event, EventData, EventDetail, Person


class EventDataAdmin(admin.ModelAdmin):
    search_fields = ['runner']


class PersonAdmin(admin.ModelAdmin):
    search_fields = ['last_name']


admin.site.register(Person, PersonAdmin)
admin.site.register(Event)
admin.site.register(EventData, EventDataAdmin)
admin.site.register(EventDetail)
