1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10.3 on 2016-11-19 13:55
3 from __future__ import unicode_literals
5 from django.db import migrations, models
6 import django.db.models.deletion
7 import quotes.localmodels
10 class Migration(migrations.Migration):
18 migrations.CreateModel(
21 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
22 ('creation_date', models.DateTimeField(auto_now_add=True)),
23 ('last_modification', models.DateTimeField(auto_now=True)),
24 ('name', models.CharField(max_length=100, unique=True)),
25 ('date', models.DateField(blank=True, help_text=b'Date of the quote', null=True)),
26 ('notes', quotes.localmodels.HTMLField(blank=True, help_text=b'Notes about the entry; may be left blank. Displayed on the public pages')),
27 ('pvt_notes', quotes.localmodels.HTMLField(blank=True, help_text=b'Notes about the entry; not displayed on the public interface')),
28 ('nb_display', models.BigIntegerField(default=0)),
34 migrations.CreateModel(
37 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
38 ('relation_type', models.CharField(max_length=100)),
41 migrations.CreateModel(
44 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
45 ('tag', models.CharField(max_length=100, unique=True)),
48 migrations.CreateModel(
51 ('context_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='quotes_beta.Context')),
53 bases=('quotes_beta.context',),
55 migrations.CreateModel(
58 ('context_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='quotes_beta.Context')),
60 bases=('quotes_beta.context',),
62 migrations.CreateModel(
65 ('context_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='quotes_beta.Context')),
66 ('birth_date', models.DateField(blank=True, help_text=b'Date of birth', null=True)),
67 ('death_date', models.DateField(blank=True, help_text=b'Date of death (leave blank if still alive!)', null=True)),
69 bases=('quotes_beta.context',),
71 migrations.CreateModel(
74 ('context_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='quotes_beta.Context')),
75 ('text', quotes.localmodels.HTMLField()),
77 bases=('quotes_beta.context',),
82 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parents', to='quotes_beta.Context'),
87 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='childs', to='quotes_beta.Context'),
92 field=models.ManyToManyField(blank=True, help_text=b'Not implemented yet', to='quotes_beta.Tag'),