Project_Camper/vagus/camper/migrations/0004_auto_20201211_2102.py

30 lines
1.0 KiB
Python

# Generated by Django 3.1.3 on 2020-12-11 21:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('camper', '0003_auto_20201210_2155'),
]
operations = [
migrations.AlterField(
model_name='offer_stats',
name='offer',
field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='camper.offer'),
),
migrations.CreateModel(
name='Image_offer',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('image', models.ImageField(upload_to='images/')),
('main_image', models.BooleanField(default=False)),
('offer', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='camper.offer', verbose_name='')),
],
),
]