Add migration
This commit is contained in:
parent
249769f732
commit
2b8bf3f1f2
1 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2019-11-27 07:18
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hosting', '0058_genericproduct_product_subscription_interval'),
|
||||
('cms', '0014_auto_20160404_1908'),
|
||||
('datacenterlight', '0029_auto_20190420_1022'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='GenericProductHeaderPluginModel',
|
||||
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')),
|
||||
('header_text', models.TextField(help_text='Give a header text')),
|
||||
('header_background_color', models.CharField(default='3c4e68', max_length=10)),
|
||||
('buy_button_text', models.TextField(default='Buy now', help_text='Input the text to be shown on the buy button')),
|
||||
('generic_product', models.ForeignKey(blank=True, help_text='Choose or create a generic product that you want to link with this header', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dcl_generic_product_header_plugin', to='hosting.GenericProduct')),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
bases=('cms.cmsplugin',),
|
||||
),
|
||||
]
|
Loading…
Reference in a new issue