]> gitweb.fperrin.net Git - djsite.git/blob - quotes/migrations/0003_auto_20161009_2254.py
Add HTML validation
[djsite.git] / quotes / migrations / 0003_auto_20161009_2254.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         ('quotes', '0002_context_author'),
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='Work',
16             fields=[
17                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18                 ('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)),
19                 ('date', models.DateField(help_text=b'Date of the quote', null=True, blank=True)),
20                 ('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)),
21                 ('pvt_notes', models.TextField(help_text=b'Notes about the work; not displayed on                                   the public interface', blank=True)),
22                 ('author', models.ForeignKey(to='quotes.Author')),
23                 ('tags', models.ManyToManyField(to='quotes.Tag', blank=True)),
24             ],
25         ),
26         migrations.RemoveField(
27             model_name='context',
28             name='author',
29         ),
30         migrations.RemoveField(
31             model_name='context',
32             name='tags',
33         ),
34         migrations.AlterField(
35             model_name='quote',
36             name='context',
37             field=models.ForeignKey(to='quotes.Work'),
38         ),
39         migrations.DeleteModel(
40             name='Context',
41         ),
42     ]