enable save_as on InfoCategory and InfoItem admin classes
This commit is contained in:
parent
6f175b17fd
commit
24c5a94560
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue