30 lines
1.4 KiB
Python
30 lines
1.4 KiB
Python
|
# Generated by Django 4.2.7 on 2023-12-06 11:46
|
||
|
|
||
|
import datacenterlight.cms_models
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('cms', '0022_auto_20180620_1551'),
|
||
|
('datacenterlight', '0005_dclcalculatorpluginmodel_dclbanneritempluginmodel_and_more'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='DCLCalculatorPluginModel',
|
||
|
fields=[
|
||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='%(app_label)s_%(class)s', serialize=False, to='cms.cmsplugin')),
|
||
|
('default_selected_template', models.CharField(default='Devuan Ascii', help_text='Write the name of the template that you need selected as default when the calculator loads', max_length=128, null=True)),
|
||
|
('enable_512mb_ram', models.BooleanField(default=False)),
|
||
|
('pricing', models.ForeignKey(help_text='Choose a pricing that will be associated with this Calculator', on_delete=django.db.models.deletion.CASCADE, related_name='dcl_custom_pricing_vm_pricing', to='datacenterlight.vmpricing')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('cms.cmsplugin',),
|
||
|
),
|
||
|
]
|