enable save_as on InfoCategory and InfoItem admin classes

This commit is contained in:
Thomas Steen Rasmussen 2021-05-02 13:39:28 +02:00
parent 6f175b17fd
commit 24c5a94560

View file

@ -6,6 +6,7 @@ from .models import InfoCategory, InfoItem
@admin.register(InfoItem)
class InfoItemAdmin(VersionAdmin):
save_as = True
list_filter = ["category", "category__team__camp"]
list_display = ["headline"]
@ -17,7 +18,8 @@ class InfoItemInlineAdmin(admin.StackedInline):
@admin.register(InfoCategory)
class InfoCategorydmin(admin.ModelAdmin):
class InfoCategoryAdmin(admin.ModelAdmin):
save_as = True
list_filter = ["team__camp"]
list_display = ["headline"]
search_fields = ["headline", "body"]