# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-19 13:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import quotes.localmodels class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Context', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('creation_date', models.DateTimeField(auto_now_add=True)), ('last_modification', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=100, unique=True)), ('date', models.DateField(blank=True, help_text=b'Date of the quote', null=True)), ('notes', quotes.localmodels.HTMLField(blank=True, help_text=b'Notes about the entry; may be left blank. Displayed on the public pages')), ('pvt_notes', quotes.localmodels.HTMLField(blank=True, help_text=b'Notes about the entry; not displayed on the public interface')), ('nb_display', models.BigIntegerField(default=0)), ], options={ 'ordering': ['name'], }, ), migrations.CreateModel( name='Link', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('relation_type', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tag', models.CharField(max_length=100, unique=True)), ], ), migrations.CreateModel( name='Book', fields=[ ('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')), ], bases=('quotes_beta.context',), ), migrations.CreateModel( name='Film', fields=[ ('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')), ], bases=('quotes_beta.context',), ), migrations.CreateModel( name='Person', fields=[ ('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')), ('birth_date', models.DateField(blank=True, help_text=b'Date of birth', null=True)), ('death_date', models.DateField(blank=True, help_text=b'Date of death (leave blank if still alive!)', null=True)), ], bases=('quotes_beta.context',), ), migrations.CreateModel( name='Quote', fields=[ ('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')), ('text', quotes.localmodels.HTMLField()), ], bases=('quotes_beta.context',), ), migrations.AddField( model_name='link', name='child', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parents', to='quotes_beta.Context'), ), migrations.AddField( model_name='link', name='parent', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='childs', to='quotes_beta.Context'), ), migrations.AddField( model_name='context', name='tags', field=models.ManyToManyField(blank=True, help_text=b'Not implemented yet', to='quotes_beta.Tag'), ), ]