diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-23 14:43:48 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-23 14:43:48 +0200 |
commit | f5fc6f23f5369df98fb0fdb061bfbac3c9662677 (patch) | |
tree | 2abd184b08e73352ccb9ddb078b1d48122b5e472 /archaeological_operations/migrations/0070_auto_20190923_1408.py | |
parent | d267f410a54aa76b7f9fe02cd754a270f56b3a04 (diff) | |
download | Ishtar-f5fc6f23f5369df98fb0fdb061bfbac3c9662677.tar.bz2 Ishtar-f5fc6f23f5369df98fb0fdb061bfbac3c9662677.zip |
Hide parcel field for UE QA - Add cultural atribution for sites
Diffstat (limited to 'archaeological_operations/migrations/0070_auto_20190923_1408.py')
-rw-r--r-- | archaeological_operations/migrations/0070_auto_20190923_1408.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/archaeological_operations/migrations/0070_auto_20190923_1408.py b/archaeological_operations/migrations/0070_auto_20190923_1408.py new file mode 100644 index 000000000..13e1ac7d4 --- /dev/null +++ b/archaeological_operations/migrations/0070_auto_20190923_1408.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-09-23 14:08 +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_operations', '0069_auto_20190918_1520'), + ] + + operations = [ + migrations.CreateModel( + name='CulturalAttributionType', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('label', models.TextField(verbose_name='Label')), + ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z', 32), "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')), + ('order', models.IntegerField(verbose_name='Order')), + ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='archaeological_operations.CulturalAttributionType', verbose_name='Parent')), + ], + options={ + 'ordering': ('order',), + 'verbose_name_plural': 'Cultural attribution types', + 'verbose_name': 'Cultural attribution type', + }, + bases=(ishtar_common.models.Cached, models.Model), + ), + migrations.AddField( + model_name='archaeologicalsite', + name='cultural_attributions', + field=models.ManyToManyField(blank=True, to='archaeological_operations.CulturalAttributionType', verbose_name='Cultural attribution'), + ), + ] |