X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/cbb14d2ed3eb0b72a6c3c68ab93847923e6142f4..95070e9f9c91673ba4efc7ef9c7a9c40bc894c0b:/apps/wiki/admin.py?ds=inline diff --git a/apps/wiki/admin.py b/apps/wiki/admin.py index 60a78f4a..577fece7 100644 --- a/apps/wiki/admin.py +++ b/apps/wiki/admin.py @@ -1,6 +1,10 @@ +# -*- coding: utf-8 -*- from django.contrib import admin from wiki import models -admin.site.register(models.Book) -admin.site.register(models.Theme) + +class ThemeAdmin(admin.ModelAdmin): + search_fields = ['name'] + +admin.site.register(models.Theme, ThemeAdmin)