1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
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=b'libraries', on_delete=django.db.models.deletion.PROTECT, to='libraries.Catalog')),
38 'verbose_name': 'library',
39 'verbose_name_plural': 'libraries',
41 bases=(models.Model,),