version
[django-migdal.git] / migdal / migrations / 0002_auto_20180710_0849.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10.6 on 2018-07-10 08:49
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6 import django.db.models.deletion
7 import fnpdjango.utils.fields
8
9
10 class Migration(migrations.Migration):
11
12     dependencies = [
13         ('migdal', '0001_initial'),
14     ]
15
16     operations = [
17         migrations.CreateModel(
18             name='Photo',
19             fields=[
20                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
21                 ('image', models.ImageField(blank=True, null=True, upload_to=b'entry/photo/', verbose_name='image')),
22             ],
23         ),
24         migrations.CreateModel(
25             name='PhotoGallery',
26             fields=[
27                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
28                 ('key', models.CharField(max_length=64)),
29             ],
30         ),
31         migrations.CreateModel(
32             name='Entry_event',
33             fields=[
34             ],
35             options={
36                 'verbose_name': 'entry: events',
37                 'proxy': True,
38                 'verbose_name_plural': 'entries: events',
39             },
40             bases=('migdal.entry',),
41         ),
42         migrations.AddField(
43             model_name='entry',
44             name='place_en',
45             field=models.CharField(blank=True, max_length=256, null=True, verbose_name='place'),
46         ),
47         migrations.AddField(
48             model_name='entry',
49             name='place_pl',
50             field=models.CharField(blank=True, max_length=256, null=True, verbose_name='place'),
51         ),
52         migrations.AddField(
53             model_name='entry',
54             name='time_en',
55             field=models.CharField(blank=True, max_length=256, null=True, verbose_name='time'),
56         ),
57         migrations.AddField(
58             model_name='entry',
59             name='time_pl',
60             field=models.CharField(blank=True, max_length=256, null=True, verbose_name='time'),
61         ),
62         migrations.AlterField(
63             model_name='entry',
64             name='body_en',
65             field=fnpdjango.utils.fields.TextileField(blank=True, help_text='Use <a href="https://txstyle.org/article/44/an-overview-of-the-textile-syntax">Textile</a> syntax.', null=True, rendered_field=True, verbose_name='body'),
66         ),
67         migrations.AlterField(
68             model_name='entry',
69             name='body_pl',
70             field=fnpdjango.utils.fields.TextileField(blank=True, help_text='Use <a href="https://txstyle.org/article/44/an-overview-of-the-textile-syntax">Textile</a> syntax.', null=True, rendered_field=True, verbose_name='body'),
71         ),
72         migrations.AlterField(
73             model_name='entry',
74             name='lead_en',
75             field=fnpdjango.utils.fields.TextileField(blank=True, help_text='Use <a href="https://txstyle.org/article/44/an-overview-of-the-textile-syntax">Textile</a> syntax.', null=True, rendered_field=True, verbose_name='lead'),
76         ),
77         migrations.AlterField(
78             model_name='entry',
79             name='lead_pl',
80             field=fnpdjango.utils.fields.TextileField(blank=True, help_text='Use <a href="https://txstyle.org/article/44/an-overview-of-the-textile-syntax">Textile</a> syntax.', null=True, rendered_field=True, verbose_name='lead'),
81         ),
82         migrations.AlterField(
83             model_name='entry',
84             name='type',
85             field=models.CharField(choices=[(b'news', 'news'), (b'publications', 'publications'), (b'info', 'info'), (b'event', 'events')], db_index=True, max_length=16),
86         ),
87         migrations.AddField(
88             model_name='photo',
89             name='gallery',
90             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='migdal.PhotoGallery'),
91         ),
92         migrations.AddField(
93             model_name='entry',
94             name='gallery',
95             field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='migdal.PhotoGallery'),
96         ),
97     ]