Use Wikidata for cover imports from Commons.
[redakcja.git] / src / catalogue / migrations / 0028_auto_20201102_1109.py
1 # Generated by Django 3.0.4 on 2020-11-02 11:09
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         ('catalogue', '0027_auto_20201027_1501'),
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='CollectionCategory',
16             fields=[
17                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18                 ('name', models.CharField(max_length=255)),
19                 ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='children', to='catalogue.CollectionCategory')),
20             ],
21             options={
22                 'verbose_name': 'collection category',
23                 'verbose_name_plural': 'collection categories',
24             },
25         ),
26         migrations.AddField(
27             model_name='collection',
28             name='category',
29             field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalogue.CollectionCategory'),
30         ),
31     ]