from django.contrib import admin

from .models import WorkRecord


@admin.register(WorkRecord)
class WorkRecordAdmin(admin.ModelAdmin):
    list_display = ['work_date', 'work_type', 'title', 'year', 'auto_created']
    list_filter = ['work_type', 'year', 'auto_created']
    search_fields = ['title']

