# Generated by Django 2.2.24 on 2024-02-10 12:29 import os from django.db import migrations from django.core.management import call_command def load_data(apps, __): TechnicalProcessType = apps.get_model("archaeological_finds", "technicalprocesstype") if not TechnicalProcessType.objects.count(): json_path = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-1] + ["0116_data_migration.json"]) call_command("loaddata", json_path) class Migration(migrations.Migration): dependencies = [ ('archaeological_finds', '0115_auto_20240215_1547'), ] operations = [ migrations.RunPython(load_data) ]