clone cms with menus, make menus standalone app

This commit is contained in:
bruks 2026-09-30 15:27:04 +01:00
commit afb096b7a3
1153 changed files with 318897 additions and 37 deletions

View file

@ -33,7 +33,7 @@ class CMSIntegration(models.Model):
'datacenterlight_calculator',
related_name='dcl-calculator-placeholder+'
)
domain = models.ForeignKey(Site, null=True, blank=True)
domain = models.ForeignKey(Site, null=True, blank=True, on_delete=models.SET_NULL)
class Meta:
unique_together = ('name', 'domain')
@ -339,7 +339,8 @@ class DCLCalculatorPluginModel(CMSPlugin):
VMPricing,
related_name="dcl_custom_pricing_vm_pricing",
help_text='Choose a pricing that will be associated with this '
'Calculator'
'Calculator',
on_delete=models.SET_NULL
)
vm_type = models.CharField(
max_length=50, choices=VMTemplate.VM_TYPE_CHOICES,