blob: ca4817fbfd7e39d3bd3f3259bc81ae7bda773a76 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | # Generated by Django 2.2.24 on 2024-02-10 12:07
import os
from django.db import migrations
from django.core.management import call_command
def load_data(apps, __):
    LicenseType = apps.get_model("ishtar_common", "licensetype")
    if not LicenseType.objects.count():
        json_path = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-1] + ["0237_data_migration.json"])
        call_command("loaddata", json_path)
class Migration(migrations.Migration):
    dependencies = [
        ('ishtar_common', '0236_auto_20240218_1726'),
    ]
    operations = [
        migrations.RunPython(load_data)
    ]
 |