from django.contrib import admin

from encyclopedia.models import DiseaseWiki


@admin.register(DiseaseWiki)
class DiseaseWikiAdmin(admin.ModelAdmin):
    list_display = ('name', 'category', 'create_time')

    list_display_links = ('name',)
    search_fields = ('name',)
    list_filter = ('category',)

    class Meta:
        verbose_name = "百科知识"