57 lines
1.6 KiB
Python
57 lines
1.6 KiB
Python
# Generated by Django 3.1.3 on 2020-12-06 16:02
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('offer', '0002_auto_20201201_1844'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='offer_category',
|
|
fields=[
|
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
|
('name', models.CharField(max_length=50)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='offer_stats',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
],
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='offer',
|
|
name='background_image',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='offer',
|
|
name='main_image',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='offer',
|
|
name='offer_price_per_day',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='offer',
|
|
name='offer_title',
|
|
),
|
|
migrations.AddField(
|
|
model_name='offer',
|
|
name='title',
|
|
field=models.CharField(default='Tytuł oferty', max_length=50, verbose_name='Title'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='offer',
|
|
name='category',
|
|
field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='offer.offer_category'),
|
|
),
|
|
migrations.DeleteModel(
|
|
name='Category',
|
|
),
|
|
]
|