villafleurie/rental/migrations/0012_auto_20191110_1814.py
Ruidy 780188e7d6
Refactor (#7)
* crete setting module to split prod and dev configs

* fix calendar midmatch

* lint imports using isort

* doc: add doctrings
2020-07-31 08:02:10 +02:00

31 lines
956 B
Python

# Generated by Django 2.2.6 on 2019-11-10 18:14
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rental', '0011_auto_20191107_2223'),
]
operations = [
migrations.CreateModel(
name='Image',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('img', models.ImageField(blank=True, null=True, upload_to='img/')),
('alt', models.CharField(max_length=100)),
],
),
migrations.RemoveField(
model_name='place',
name='pictures',
),
migrations.AddField(
model_name='place',
name='images',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='rental.Image'),
),
]