Project_Camper/vagus/offer/migrations/0002_auto_20201201_1844.py
Krzysztof Bonecki 21be6f6d0e commit 2
2020-12-07 21:41:55 +01:00

56 lines
1.7 KiB
Python

# Generated by Django 3.1.3 on 2020-12-01 18:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('offer', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('category_name', models.CharField(max_length=50)),
],
),
migrations.RemoveField(
model_name='offer',
name='first_name',
),
migrations.AddField(
model_name='offer',
name='background_image',
field=models.ImageField(blank=True, null=True, upload_to='media/images/'),
),
migrations.AddField(
model_name='offer',
name='main_image',
field=models.ImageField(blank=True, null=True, upload_to='media/images/'),
),
migrations.AddField(
model_name='offer',
name='offer_price_per_day',
field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
),
migrations.AddField(
model_name='offer',
name='offer_title',
field=models.CharField(default=None, max_length=50),
),
migrations.AlterField(
model_name='offer',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AddField(
model_name='offer',
name='category',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='offer.category'),
),
]