Merge remote-tracking branch 'zawadzki/new-design'
[wolnelektury.git] / src / dictionary / migrations / 0002_auto_20141006_1422.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', '0004_remove_booktags_count_related_info'),
12         ('dictionary', '0001_initial'),
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='NoteSource',
18             fields=[
19                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
20                 ('anchor', models.CharField(max_length=64)),
21                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
22                 ('note', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dictionary.Note')),
23             ],
24             options={
25                 'ordering': ['book'],
26             },
27             bases=(models.Model,),
28         ),
29         migrations.RemoveField(
30             model_name='note',
31             name='anchor',
32         ),
33         migrations.RemoveField(
34             model_name='note',
35             name='book',
36         ),
37         migrations.AddField(
38             model_name='note',
39             name='fn_type',
40             field=models.CharField(default='', max_length=10, db_index=True),
41             preserve_default=False,
42         ),
43         migrations.AddField(
44             model_name='note',
45             name='language',
46             field=models.CharField(default='', max_length=10, db_index=True),
47             preserve_default=False,
48         ),
49         migrations.AddField(
50             model_name='note',
51             name='qualifier',
52             field=models.CharField(default='', max_length=128, db_index=True, blank=True),
53             preserve_default=False,
54         ),
55     ]