Django 1.8
[prawokultury.git] / events / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Event',
15             fields=[
16                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17                 ('date', models.DateTimeField(max_length=255, verbose_name='date', db_index=True)),
18                 ('date_end', models.DateTimeField(db_index=True, max_length=255, verbose_name='end date', blank=True)),
19                 ('link', models.URLField(verbose_name='link')),
20                 ('title_pl', models.CharField(max_length=255, verbose_name='title', blank=True)),
21                 ('title_en', models.CharField(max_length=255, verbose_name='title', blank=True)),
22                 ('organizer_pl', models.CharField(db_index=True, max_length=255, verbose_name='organizer', blank=True)),
23                 ('organizer_en', models.CharField(db_index=True, max_length=255, verbose_name='organizer', blank=True)),
24                 ('place_pl', models.CharField(max_length=255, verbose_name='place', blank=True)),
25                 ('place_en', models.CharField(max_length=255, verbose_name='place', blank=True)),
26                 ('published_pl', models.BooleanField(default=False, verbose_name='published')),
27                 ('published_en', models.BooleanField(default=False, verbose_name='published')),
28             ],
29             options={
30                 'ordering': ['date'],
31                 'verbose_name': 'event',
32                 'verbose_name_plural': 'events',
33             },
34             bases=(models.Model,),
35         ),
36     ]