X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d66f9960d12d739c44a89d1d4e013f52783097e7..2c101e78aee8cd3ccf3f24a0ecaa22fa77593c5c:/src/references/admin.py?ds=inline diff --git a/src/references/admin.py b/src/references/admin.py index 191d0e689..cba8b88e2 100644 --- a/src/references/admin.py +++ b/src/references/admin.py @@ -2,4 +2,7 @@ from django.contrib import admin from . import models -admin.site.register(models.Entity) +@admin.register(models.Entity) +class EntityAdmin(admin.ModelAdmin): + list_display = ['uri', 'label'] + search_fields = ['uri', 'label']