fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Layout fixes, cover update for files.
[wolnelektury.git]
/
src
/
references
/
admin.py
diff --git
a/src/references/admin.py
b/src/references/admin.py
index
191d0e6
..
cba8b88
100644
(file)
--- a/
src/references/admin.py
+++ b/
src/references/admin.py
@@
-2,4
+2,7
@@
from django.contrib import admin
from . import models
from . import models
-admin.site.register(models.Entity)
+@admin.register(models.Entity)
+class EntityAdmin(admin.ModelAdmin):
+ list_display = ['uri', 'label']
+ search_fields = ['uri', 'label']