]> gitweb.fperrin.net Git - djsite.git/blob - quotes/migrations/0001_initial.py
c7f97c4a58b7a20b0ae950315b5a987e161ac993
[djsite.git] / quotes / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import migrations, models
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Author',
15             fields=[
16                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17                 ('name', models.CharField(help_text=b'Name of the author', max_length=100)),
18                 ('notes', models.TextField(help_text=b'Notes about the author; may be left blank. Will                               not be HTML-escaped.', blank=True)),
19                 ('pvt_notes', models.TextField(help_text=b'Notes about the author; not displayed on                                   the public interface', blank=True)),
20                 ('birth_date', models.DateField(help_text=b'Date of birth', null=True, blank=True)),
21                 ('death_date', models.DateField(help_text=b'Date of death (leave blank                                   if still alive!)', null=True, blank=True)),
22             ],
23         ),
24         migrations.CreateModel(
25             name='Context',
26             fields=[
27                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
28                 ('name', models.CharField(help_text=b'Name of the context for the quote                             (title of the work or speech it appears in)', max_length=100)),
29                 ('date', models.DateField(help_text=b'Date of the quote', null=True, blank=True)),
30                 ('notes', models.TextField(help_text=b'Notes about the work; may be left blank. Will                               not be HTML-escaped. XXX: offer a WYSIWYG editor', blank=True)),
31                 ('pvt_notes', models.TextField(help_text=b'Notes about the work; not displayed on                                   the public interface', blank=True)),
32             ],
33         ),
34         migrations.CreateModel(
35             name='Quote',
36             fields=[
37                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
38                 ('text', models.TextField()),
39                 ('notes', models.TextField(help_text=b'Notes about the quote; may be left blank. Will                               not be HTML-escaped. XXX: offer a WYSIWYG editor', blank=True)),
40                 ('pvt_notes', models.TextField(help_text=b'Notes about the quote; not displayed on                                   the public interface', blank=True)),
41                 ('context', models.ForeignKey(to='quotes.Context')),
42             ],
43         ),
44         migrations.CreateModel(
45             name='Tag',
46             fields=[
47                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
48                 ('tag', models.CharField(max_length=100)),
49             ],
50         ),
51         migrations.AddField(
52             model_name='quote',
53             name='tags',
54             field=models.ManyToManyField(to='quotes.Tag', blank=True),
55         ),
56         migrations.AddField(
57             model_name='context',
58             name='tags',
59             field=models.ManyToManyField(to='quotes.Tag', blank=True),
60         ),
61         migrations.AddField(
62             model_name='author',
63             name='tags',
64             field=models.ManyToManyField(to='quotes.Tag', blank=True),
65         ),
66     ]