1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
4 from django.db import models, migrations
5 import django.db.models.deletion
8 class Migration(migrations.Migration):
14 migrations.CreateModel(
17 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18 ('name', models.CharField(max_length=120, verbose_name='name')),
19 ('slug', models.SlugField(unique=True, max_length=120, verbose_name='Slug')),
22 'verbose_name': 'catalog',
23 'verbose_name_plural': 'catalogs',
25 bases=(models.Model,),
27 migrations.CreateModel(
30 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
31 ('name', models.CharField(max_length=120, verbose_name='name', blank=True)),
32 ('slug', models.SlugField(max_length=120, unique=True, null=True, verbose_name='Slug')),
33 ('url', models.CharField(max_length=120, verbose_name='url', blank=True)),
34 ('description', models.TextField(verbose_name='Description', blank=True)),
35 ('catalog', models.ForeignKey(related_name='libraries', on_delete=django.db.models.deletion.PROTECT, to='libraries.Catalog')),
38 'verbose_name': 'library',
39 'verbose_name_plural': 'libraries',
41 bases=(models.Model,),