X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d66f9960d12d739c44a89d1d4e013f52783097e7..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/references/admin.py 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']