46 wiersze
1.7 KiB
Python
46 wiersze
1.7 KiB
Python
# Generated by Django 4.1.9 on 2023-05-13 21:57
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import taggit.managers
|
|
import wagtail.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('taggit', '0005_auto_20220424_2025'),
|
|
('wagtailcore', '0083_workflowcontenttype'),
|
|
('store', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='product',
|
|
name='available',
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name='producttemplate',
|
|
name='tags',
|
|
field=taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='product',
|
|
name='template',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='products', to='store.producttemplate'),
|
|
),
|
|
migrations.CreateModel(
|
|
name='ProductListPage',
|
|
fields=[
|
|
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')),
|
|
('description', wagtail.fields.RichTextField(blank=True)),
|
|
('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
]
|