From d3de36b29482af18e5c7f7920e2c2405a6049d3a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 4 Jun 2018 16:07:33 +0200 Subject: Context record: add town field for context records (when parcel is not mandatory) --- .../migrations/0024_auto_20180604_1532.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 archaeological_context_records/migrations/0024_auto_20180604_1532.py (limited to 'archaeological_context_records/migrations') diff --git a/archaeological_context_records/migrations/0024_auto_20180604_1532.py b/archaeological_context_records/migrations/0024_auto_20180604_1532.py new file mode 100644 index 000000000..8290c21b0 --- /dev/null +++ b/archaeological_context_records/migrations/0024_auto_20180604_1532.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.10 on 2018-06-04 15:32 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('ishtar_common', '0054_auto_20180525_1249'), + ('archaeological_context_records', '0023_auto_20180511_1232'), + ] + + operations = [ + migrations.AddField( + model_name='contextrecord', + name='town', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='context_record', to='ishtar_common.Town', verbose_name='Town'), + ), + migrations.AddField( + model_name='historicalcontextrecord', + name='town', + field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='ishtar_common.Town'), + ), + ] -- cgit v1.2.3