From 24c5a945607f9675a01eeb0a942e02932b639cca Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 2 May 2021 13:39:28 +0200 Subject: [PATCH] enable save_as on InfoCategory and InfoItem admin classes --- src/info/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/info/admin.py b/src/info/admin.py index f2b80031..82eb1599 100644 --- a/src/info/admin.py +++ b/src/info/admin.py @@ -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"]