New migrations
This commit is contained in:
parent
894c7ace25
commit
0a3d2a5b3a
15 changed files with 799 additions and 532 deletions
29
datacenterlight/migrations/0006_dclcalculatorpluginmodel.py
Normal file
29
datacenterlight/migrations/0006_dclcalculatorpluginmodel.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# 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',),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue