X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d66f9960d12d739c44a89d1d4e013f52783097e7..48a6d2ddc3e5ce215beddd6369f01598651ad216:/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']