fix aldryn_newsblog

This commit is contained in:
bruks 2026-10-01 11:51:55 +01:00
commit b43ca2982d
12 changed files with 67 additions and 39 deletions

View file

@ -1,6 +1,6 @@
from cms.extensions import PageExtension
from cms.extensions.extension_pool import extension_pool
from cms.models.fields import PlaceholderField
from cms.models.fields import PlaceholderField, PlaceholderRelationField
from cms.models.pluginmodel import CMSPlugin
from django import forms
from django.conf import settings
@ -24,13 +24,13 @@ class CMSIntegration(models.Model):
'fetch the Integration into pages'
)
)
footer_placeholder = PlaceholderField(
footer_placeholder = PlaceholderRelationField(
'datacenterlight_footer', related_name='dcl-footer-placeholder+'
)
navbar_placeholder = PlaceholderField(
navbar_placeholder = PlaceholderRelationField(
'datacenterlight_navbar', related_name='dcl-navbar-placeholder+'
)
calculator_placeholder = PlaceholderField(
calculator_placeholder = PlaceholderRelationField(
'datacenterlight_calculator',
related_name='dcl-calculator-placeholder+'
)
@ -350,7 +350,7 @@ class DCLCalculatorPluginModel(CMSPlugin):
related_name="dcl_custom_pricing_vm_pricing",
help_text='Choose a pricing that will be associated with this '
'Calculator',
on_delete=models.SET_NULL
on_delete=models.SET_NULL, null=True,
)
vm_type = models.CharField(
max_length=50, choices=VMTemplate.VM_TYPE_CHOICES,