45 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# -*- coding: utf-8 -*-
 | 
						|
# Generated by Django 1.9.4 on 2018-04-15 22:36
 | 
						|
from __future__ import unicode_literals
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
import django.db.models.deletion
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ('cms', '0014_auto_20160404_1908'),
 | 
						|
        ('datacenterlight', '0018_auto_20180403_1930'),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.CreateModel(
 | 
						|
            name='DCLCustomPricingModel',
 | 
						|
            fields=[
 | 
						|
                ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
 | 
						|
            ],
 | 
						|
            options={
 | 
						|
                'abstract': False,
 | 
						|
            },
 | 
						|
            bases=('cms.cmsplugin',),
 | 
						|
        ),
 | 
						|
        migrations.CreateModel(
 | 
						|
            name='VMPricing',
 | 
						|
            fields=[
 | 
						|
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
						|
                ('name', models.CharField(max_length=255, unique=True)),
 | 
						|
                ('vat_inclusive', models.BooleanField(default=True)),
 | 
						|
                ('vat_percentage', models.DecimalField(blank=True, decimal_places=5, default=0, max_digits=7)),
 | 
						|
                ('cores_unit_price', models.DecimalField(decimal_places=5, default=0, max_digits=7)),
 | 
						|
                ('ram_unit_price', models.DecimalField(decimal_places=5, default=0, max_digits=7)),
 | 
						|
                ('ssd_unit_price', models.DecimalField(decimal_places=5, default=0, max_digits=7)),
 | 
						|
                ('hdd_unit_price', models.DecimalField(decimal_places=6, default=0, max_digits=7)),
 | 
						|
            ],
 | 
						|
        ),
 | 
						|
        migrations.AddField(
 | 
						|
            model_name='dclcustompricingmodel',
 | 
						|
            name='pricing',
 | 
						|
            field=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'),
 | 
						|
        ),
 | 
						|
    ]
 |