forked from ungleich-public/dynamicweb
fix aldryn_newsblog
This commit is contained in:
parent
2bfbb9c927
commit
b43ca2982d
12 changed files with 67 additions and 39 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue