fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
error page
[redakcja.git]
/
src
/
catalogue
/
admin.py
diff --git
a/src/catalogue/admin.py
b/src/catalogue/admin.py
index
54350a6
..
2759f9a
100644
(file)
--- a/
src/catalogue/admin.py
+++ b/
src/catalogue/admin.py
@@
-488,3
+488,10
@@
admin.site.register(models.WorkType, WorkTypeAdmin)
@admin.register(models.Place)
class PlaceAdmin(WikidataAdminMixin, TabbedTranslationAdmin):
search_fields = ['name']
@admin.register(models.Place)
class PlaceAdmin(WikidataAdminMixin, TabbedTranslationAdmin):
search_fields = ['name']
+
+
+@admin.register(models.Thema)
+class ThemaAdmin(admin.ModelAdmin):
+ list_display = ['code', 'name', 'usable', 'hidden']
+ list_filter = ['usable', 'hidden']
+ search_fields = ['code', 'name', 'description']