Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use Django CMS 4.2 capabilities #254

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions djangocms_frontend/contrib/accordion/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class AccordionItemPlugin(mixin_factory("AccordionItem"), CMSUIPlugin):
model = models.AccordionItem
form = forms.AccordionItemForm
allow_children = True
show_plugin_add_form = False

parent_classes = [
"AccordionPlugin",
]
Expand Down
3 changes: 2 additions & 1 deletion djangocms_frontend/contrib/grid/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class GridContainerPlugin(
form = forms.GridContainerForm
change_form_template = "djangocms_frontend/admin/grid_container.html"
allow_children = True
show_plugin_add_form = False

fieldsets = [
(
Expand Down Expand Up @@ -152,7 +153,7 @@ class GridColumnPlugin(
# TODO it should allow for the responsive utility class
# https://getbootstrap.com/docs/5.0/layout/grid/#column-resets
parent_classes = ["GridRowPlugin"]
edit_disabled = True
show_plugin_add_form = False

fieldsets = [
(
Expand Down