0.0.18 bg_color for block
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 4.2.7 on 2023-11-28 13:29
|
||||
|
||||
import BaseModels.base_models
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('GeneralApp', '0010_block_but_icon_widgetforblock_but_icon_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='block',
|
||||
name='bg_image',
|
||||
field=models.FileField(blank=True, null=True, upload_to='uploads/', validators=[BaseModels.base_models.validate_file_extension], verbose_name='Фоновое изображение блока'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='block',
|
||||
name='block_type',
|
||||
field=models.CharField(choices=[('photo_n_text', 'Фото + текст'), ('photo150_n_title', 'Фото 150x150 + заголовок'), ('how_work', 'Как с нами работать'), ('feedback_form', 'Форма обратной связи')], default='photo_n_text', max_length=100, verbose_name='Тип блока'),
|
||||
),
|
||||
]
|
||||
19
GeneralApp/migrations/0012_alter_block_bg_color.py
Normal file
19
GeneralApp/migrations/0012_alter_block_bg_color.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.7 on 2023-11-28 13:32
|
||||
|
||||
import colorfield.fields
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('GeneralApp', '0011_block_bg_image_alter_block_block_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='block',
|
||||
name='bg_color',
|
||||
field=colorfield.fields.ColorField(blank=True, default=None, image_field=None, max_length=25, null=True, samples=None, verbose_name='Цвет фона'),
|
||||
),
|
||||
]
|
||||
19
GeneralApp/migrations/0013_alter_widgetforblock_bg_color.py
Normal file
19
GeneralApp/migrations/0013_alter_widgetforblock_bg_color.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.7 on 2023-11-28 13:37
|
||||
|
||||
import colorfield.fields
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('GeneralApp', '0012_alter_block_bg_color'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='widgetforblock',
|
||||
name='bg_color',
|
||||
field=colorfield.fields.ColorField(blank=True, default=None, image_field=None, max_length=25, null=True, samples=None, verbose_name='Цвет фона'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user