# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-15 11:54 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion import ishtar_common.models import re class Migration(migrations.Migration): dependencies = [ ('archaeological_finds', '0015_auto_20180119_1516'), ] operations = [ migrations.CreateModel( name='CommunicabilityType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.CharField(max_length=100, verbose_name='Label')), ('txt_idx', models.CharField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', max_length=100, unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')), ('comment', models.TextField(blank=True, null=True, verbose_name='Comment')), ('available', models.BooleanField(default=True, verbose_name='Available')), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='archaeological_finds.CommunicabilityType', verbose_name='Parent')), ], options={ 'ordering': ('parent__label', 'label'), 'verbose_name': 'Communicability type', 'verbose_name_plural': 'Communicability types', }, bases=(ishtar_common.models.Cached, models.Model), ), migrations.AddField( model_name='find', name='communicabilities', field=models.ManyToManyField(blank=True, related_name='find', to='archaeological_finds.CommunicabilityType', verbose_name='Communicability'), ), ]