From defd93897c0999cacf72bcc992551c49b7cbde22 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 23 Sep 2024 15:24:16 +0200 Subject: Context record: DocumentationType, ExcavationTechnic add hierarchy and order --- ...hierarchy_documentations_excavation_technics.py | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 archaeological_context_records/migrations/0121_add_hierarchy_documentations_excavation_technics.py (limited to 'archaeological_context_records/migrations') diff --git a/archaeological_context_records/migrations/0121_add_hierarchy_documentations_excavation_technics.py b/archaeological_context_records/migrations/0121_add_hierarchy_documentations_excavation_technics.py new file mode 100644 index 000000000..0aeb2b46d --- /dev/null +++ b/archaeological_context_records/migrations/0121_add_hierarchy_documentations_excavation_technics.py @@ -0,0 +1,42 @@ +# Generated by Django 2.2.24 on 2024-09-23 14:48 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_context_records', '0120_excavator'), + ] + + operations = [ + migrations.AlterModelOptions( + name='documentationtype', + options={'ordering': ('order', 'label'), 'verbose_name': 'Documentation type', 'verbose_name_plural': 'Documentation types'}, + ), + migrations.AlterModelOptions( + name='excavationtechnictype', + options={'ordering': ('order', 'label'), 'verbose_name': 'Excavation technique type', 'verbose_name_plural': 'Excavation technique types'}, + ), + migrations.AddField( + model_name='documentationtype', + name='order', + field=models.IntegerField(default=10, verbose_name='Order'), + ), + migrations.AddField( + model_name='documentationtype', + name='parent', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='archaeological_context_records.DocumentationType', verbose_name='Parent'), + ), + migrations.AddField( + model_name='excavationtechnictype', + name='order', + field=models.IntegerField(default=10, verbose_name='Order'), + ), + migrations.AddField( + model_name='excavationtechnictype', + name='parent', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='archaeological_context_records.ExcavationTechnicType', verbose_name='Parent'), + ), + ] -- cgit v1.2.3