simplify gallery
[django-migdal.git] / migdal / migrations / 0003_auto_20180711_1503.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10.6 on 2018-07-11 15:03
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6 import django.db.models.deletion
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         ('migdal', '0002_auto_20180710_0849'),
13     ]
14
15     operations = [
16         migrations.RemoveField(
17             model_name='entry',
18             name='gallery',
19         ),
20         migrations.RemoveField(
21             model_name='photo',
22             name='gallery',
23         ),
24         migrations.AddField(
25             model_name='photo',
26             name='entry',
27             field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='migdal.Entry'),
28             preserve_default=False,
29         ),
30         migrations.AlterField(
31             model_name='photo',
32             name='image',
33             field=models.ImageField(default=0, upload_to=b'entry/photo/', verbose_name='image'),
34             preserve_default=False,
35         ),
36         migrations.DeleteModel(
37             name='PhotoGallery',
38         ),
39     ]