summaryrefslogtreecommitdiff
path: root/archaeological_context_records/migrations/0022_migrate_image.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-01-29 17:41:48 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-07-01 18:02:28 +0200
commit75387c3c62f8623dfbcc8019c14e68de1391b0c3 (patch)
treecd63cc6c0ed2e4d907c0026ea00682067064912b /archaeological_context_records/migrations/0022_migrate_image.py
parent81bc316440558bf40a97f55424194f84e077f552 (diff)
downloadIshtar-75387c3c62f8623dfbcc8019c14e68de1391b0c3.tar.bz2
Ishtar-75387c3c62f8623dfbcc8019c14e68de1391b0c3.zip
Finish migration refactoring
Diffstat (limited to 'archaeological_context_records/migrations/0022_migrate_image.py')
-rw-r--r--archaeological_context_records/migrations/0022_migrate_image.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/archaeological_context_records/migrations/0022_migrate_image.py b/archaeological_context_records/migrations/0022_migrate_image.py
deleted file mode 100644
index 87ac0cc55..000000000
--- a/archaeological_context_records/migrations/0022_migrate_image.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.11.10 on 2018-05-11 12:03
-from __future__ import unicode_literals
-
-from django.db import migrations
-
-from ishtar_common.utils_migrations import migrate_simple_image_to_m2m
-
-
-def migrate_image(apps, schema_editor):
- ContextRecord = apps.get_model('archaeological_context_records',
- 'ContextRecord')
- IshtarImage = apps.get_model('ishtar_common', 'IshtarImage')
- ContextRecordImage = apps.get_model('archaeological_context_records',
- 'ContextRecordImage')
- migrate_simple_image_to_m2m(ContextRecord, IshtarImage, ContextRecordImage)
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('archaeological_context_records', '0021_auto_20180509_1736'),
- ]
-
- operations = [
- migrations.RunPython(migrate_image),
- ]