1 # Generated by Django 3.1.13 on 2021-08-13 15:44
3 from django.db import migrations, models
4 import django.db.models.deletion
7 class Migration(migrations.Migration):
12 ('documents', '0006_auto_20210706_0130'),
16 migrations.CreateModel(
19 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20 ('name', models.CharField(max_length=255)),
23 'verbose_name': 'attribute',
24 'verbose_name_plural': 'attribute',
27 migrations.CreateModel(
30 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
31 ('name', models.CharField(db_index=True, max_length=255, unique=True)),
32 ('type', models.CharField(blank=True, choices=[('section', 'Section, contains blocks'), ('div', 'Block element, like a paragraph'), ('span', 'Inline element, like an emphasis'), ('sep', 'Separator, has no content'), ('aside', 'Aside content, like a footnote'), ('verse', 'Verse element')], max_length=255)),
33 ('editor_css', models.TextField(blank=True)),
34 ('editor_css_after', models.TextField(blank=True)),
35 ('similar_to', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='wlxml.tag')),
38 'verbose_name': 'tag',
39 'verbose_name_plural': 'tags',
42 migrations.CreateModel(
45 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
46 ('chunk', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='documents.chunk')),
47 ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wlxml.tag')),
50 'verbose_name': 'tag usage',
51 'verbose_name_plural': 'tags usage',
54 migrations.CreateModel(
55 name='AttributeUsage',
57 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
58 ('value', models.CharField(blank=True, max_length=2048)),
59 ('attribute', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wlxml.attribute')),
60 ('tag_usage', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wlxml.tagusage')),
63 'verbose_name': 'attribute usage',
64 'verbose_name_plural': 'attributes usage',
68 model_name='attribute',
70 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wlxml.tag'),
72 migrations.AlterUniqueTogether(
74 unique_together={('tag', 'name')},