diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-30 18:47:14 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-30 18:48:21 +0100 |
commit | eddd946150bcd9d4ddb05000806cc2cdfb9af60d (patch) | |
tree | e091e17882ca67be8e6040e938439fa5a5e6bc5a /archaeological_finds/migrations | |
parent | afd7fb9c2be01a44a45f582eebdf02632a10be99 (diff) | |
download | Ishtar-eddd946150bcd9d4ddb05000806cc2cdfb9af60d.tar.bz2 Ishtar-eddd946150bcd9d4ddb05000806cc2cdfb9af60d.zip |
Manage basket to treatment file association
Diffstat (limited to 'archaeological_finds/migrations')
-rw-r--r-- | archaeological_finds/migrations/0043_auto_20181130_1310.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/archaeological_finds/migrations/0043_auto_20181130_1310.py b/archaeological_finds/migrations/0043_auto_20181130_1310.py new file mode 100644 index 000000000..e8881e45d --- /dev/null +++ b/archaeological_finds/migrations/0043_auto_20181130_1310.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.10 on 2018-11-30 13:10 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_finds', '0042_auto_20181129_1755'), + ] + + operations = [ + migrations.RemoveField( + model_name='historicaltreatment', + name='target_is_basket', + ), + migrations.RemoveField( + model_name='treatment', + name='target_is_basket', + ), + migrations.AddField( + model_name='historicaltreatmentfile', + name='associated_basket', + field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='archaeological_finds.FindBasket'), + ), + migrations.AddField( + model_name='treatmentfile', + name='associated_basket', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='archaeological_finds.FindBasket'), + ), + ] |