from django.db import migrations from django.core.management import call_command def load_data(apps, __): call_command("process_initialize_item_keys", "--quiet", "--clean-old") class Migration(migrations.Migration): dependencies = [ ('ishtar_common', '0266_migrate_cached_town'), ] operations = [ migrations.RunPython(load_data) ]