add tag ramka
[wolnelektury.git] / src / dictionary / migrations / 0002_auto_20141006_1422.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         ('catalogue', '0004_remove_booktags_count_related_info'),
11         ('dictionary', '0001_initial'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='NoteSource',
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                 ('book', models.ForeignKey(to='catalogue.Book')),
21                 ('note', models.ForeignKey(to='dictionary.Note')),
22             ],
23             options={
24                 'ordering': ['book'],
25             },
26             bases=(models.Model,),
27         ),
28         migrations.RemoveField(
29             model_name='note',
30             name='anchor',
31         ),
32         migrations.RemoveField(
33             model_name='note',
34             name='book',
35         ),
36         migrations.AddField(
37             model_name='note',
38             name='fn_type',
39             field=models.CharField(default='', max_length=10, db_index=True),
40             preserve_default=False,
41         ),
42         migrations.AddField(
43             model_name='note',
44             name='language',
45             field=models.CharField(default='', max_length=10, db_index=True),
46             preserve_default=False,
47         ),
48         migrations.AddField(
49             model_name='note',
50             name='qualifier',
51             field=models.CharField(default='', max_length=128, db_index=True, blank=True),
52             preserve_default=False,
53         ),
54     ]