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