update
This commit is contained in:
31
home/migrations/0018_productsection.py
Normal file
31
home/migrations/0018_productsection.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 4.2.4 on 2023-08-31 06:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('home', '0017_alter_projectsection_category'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='servicesection',
|
||||
options={'verbose_name_plural': '4. Service Section'},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='productSection',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=200)),
|
||||
('short_description', models.CharField(max_length=500)),
|
||||
('fontawesome_icon_class', models.CharField(max_length=100)),
|
||||
('detail_page_image', models.ImageField(upload_to='Products/')),
|
||||
('detail_page_description', models.TextField()),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': '3. Products Section',
|
||||
},
|
||||
),
|
||||
]
|
||||
61
home/migrations/0019_alter_aboutsection_options_and_more.py
Normal file
61
home/migrations/0019_alter_aboutsection_options_and_more.py
Normal file
@@ -0,0 +1,61 @@
|
||||
# Generated by Django 5.0.3 on 2024-12-12 08:41
|
||||
|
||||
import ckeditor.fields
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('home', '0018_productsection'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='aboutsection',
|
||||
options={'verbose_name_plural': '4. About Section'},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='productsection',
|
||||
options={'verbose_name_plural': '3. Product Section'},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='servicesection',
|
||||
options={'verbose_name_plural': '2. Service Section'},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productsection',
|
||||
name='show_call_now_widget',
|
||||
field=models.BooleanField(default=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productsection',
|
||||
name='slug',
|
||||
field=models.SlugField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='productsection',
|
||||
name='detail_page_description',
|
||||
field=ckeditor.fields.RichTextField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='productsection',
|
||||
name='detail_page_image',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='Products/'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='productsection',
|
||||
name='fontawesome_icon_class',
|
||||
field=models.CharField(blank=True, max_length=100, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='productsection',
|
||||
name='name',
|
||||
field=models.CharField(blank=True, max_length=200, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='productsection',
|
||||
name='short_description',
|
||||
field=models.CharField(blank=True, max_length=500, null=True),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user