summaryrefslogtreecommitdiff
path: root/archaeological_context_records/migrations/0119_default_typos.py
blob: 85d0b2b49021806c973eff52720f8e6eb1ae82da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Generated by Django 2.2.24 on 2024-03-25 17:24

from django.db import migrations
from ishtar_common.utils_migrations import migrations_load_data


def load_data(apps, __):
    StructureType = apps.get_model("archaeological_context_records", "structuretype")
    if not StructureType.objects.count():
        migrations_load_data("archaeological_context_records",
                             "0119_default_typos.json")


class Migration(migrations.Migration):

    dependencies = [
        ('archaeological_context_records', '0118_context_record_new_fields_new_types'),
    ]

    operations = [
        migrations.RunPython(load_data)
    ]