Fix caret positioning outside editable.
[redakcja.git] / src / catalogue / migrations / 0006_author_book.py
1 # Generated by Django 3.0.4 on 2020-03-22 23:17
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5
6
7 class Migration(migrations.Migration):
8
9     initial = True
10
11     dependencies = [
12         ('catalogue', '0005_auto_20200322_2114'),
13         ('documents', '0002_auto_20200322_2131'),
14     ]
15
16     operations = [
17         migrations.CreateModel(
18             name='Author',
19             fields=[
20                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
21                 ('name', models.CharField(max_length=255)),
22                 ('year_of_death', models.SmallIntegerField(blank=True, null=True)),
23                 ('status', models.PositiveSmallIntegerField(blank=True, choices=[('alive', 'Alive'), ('dead', 'Dead'), ('long-dead', 'Long dead'), ('unknown', 'Unknown')], null=True)),
24             ],
25         ),
26         migrations.CreateModel(
27             name='Book',
28             fields=[
29                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
30                 ('uri', models.CharField(max_length=255)),
31                 ('title', models.CharField(max_length=255)),
32                 ('language', models.CharField(max_length=3)),
33                 ('scans_source', models.CharField(blank=True, max_length=255)),
34                 ('text_source', models.CharField(blank=True, max_length=255)),
35                 ('notes', models.TextField(blank=True)),
36                 ('priority', models.PositiveSmallIntegerField(choices=[(0, 'Low'), (1, 'Medium'), (2, 'High')], default=0)),
37                 ('authors', models.ManyToManyField(to='catalogue.Author')),
38                 ('based_on', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='translation', to='catalogue.Book')),
39                 ('translator', models.ManyToManyField(related_name='translated_book_set', related_query_name='translated_book', to='catalogue.Author')),
40             ],
41         ),
42     ]