Update to new librarian api for html, txt.
[wolnelektury.git] / src / references / migrations / 0002_remove_reference_first_section_occurence.py
1 # Generated by Django 4.0.8 on 2023-06-15 11:12
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         ('references', '0001_initial'),
11     ]
12
13     operations = [
14         migrations.RemoveField(
15             model_name='reference',
16             name='first_section',
17         ),
18         migrations.CreateModel(
19             name='Occurence',
20             fields=[
21                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
22                 ('section', models.IntegerField()),
23                 ('html', models.TextField()),
24                 ('reference', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='references.reference')),
25             ],
26             options={
27                 'ordering': ('section',),
28             },
29         ),
30     ]