Some preparation for upgrade.
[wolnelektury.git] / src / dictionary / migrations / 0001_initial.py
1 from django.db import models, migrations
2 import django.db.models.deletion
3
4
5 class Migration(migrations.Migration):
6
7     dependencies = [
8         ('catalogue', '0001_initial'),
9     ]
10
11     operations = [
12         migrations.CreateModel(
13             name='Note',
14             fields=[
15                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
16                 ('anchor', models.CharField(max_length=64)),
17                 ('html', models.TextField()),
18                 ('sort_key', models.CharField(max_length=128, db_index=True)),
19                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
20             ],
21             options={
22                 'ordering': ['sort_key'],
23             },
24             bases=(models.Model,),
25         ),
26     ]