Word change.
[wolnelektury.git] / src / dictionary / migrations / 0001_initial.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.db import models, migrations
5 import django.db.models.deletion
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11         ('catalogue', '0001_initial'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='Note',
17             fields=[
18                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19                 ('anchor', models.CharField(max_length=64)),
20                 ('html', models.TextField()),
21                 ('sort_key', models.CharField(max_length=128, db_index=True)),
22                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
23             ],
24             options={
25                 'ordering': ['sort_key'],
26             },
27             bases=(models.Model,),
28         ),
29     ]