Add PlaceholderMixin to admin class
recommended by cms check
This commit is contained in:
parent
75e578d23f
commit
70ca66ebd5
1 changed files with 4 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ from django.urls import path, reverse, reverse_lazy
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from adminsortable2.admin import SortableAdminMixin
|
||||
from cms.admin.placeholderadmin import PlaceholderAdminMixin
|
||||
|
||||
from froide.api import api_router
|
||||
from froide.follow.admin import FollowerAdmin
|
||||
|
|
@ -335,7 +336,9 @@ class GovernmentPlanUpdateAdmin(admin.ModelAdmin):
|
|||
return super().has_change_permission(request, obj=obj)
|
||||
|
||||
|
||||
class GovernmentPlanSectionAdmin(SortableAdminMixin, admin.ModelAdmin):
|
||||
class GovernmentPlanSectionAdmin(
|
||||
SortableAdminMixin, PlaceholderAdminMixin, admin.ModelAdmin
|
||||
):
|
||||
save_on_top = True
|
||||
prepopulated_fields = {"slug": ("title",)}
|
||||
search_fields = ("title",)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue