Пример #1
0
class Migration(migrations.Migration):
    dependencies = [
        ('lookup', '0001_initial'),
    ]

    operations = [
        migrations.RunPython(insert_migration_data('lookup')),
    ]
Пример #2
0
class Migration(migrations.Migration):
    dependencies = [
        ('employer', '0002_auto_20180707_1351'),
    ]

    operations = [
        migrations.RunPython(insert_migration_data("employer")),
    ]
Пример #3
0
class Migration(migrations.Migration):
    dependencies = [
        ('onet', '0001_initial'),
    ]

    operations = [
        migrations.RunPython(insert_migration_data('onet')),
        #migrations.RunSQL(sql_statements),
    ]
Пример #4
0
class Migration(migrations.Migration):
    dependencies = [
        ('usage', '0001_initial'),
    ]

    operations = [
        #migrations.RunSQL(ADD_TRIAL_LIMITS)
        migrations.RunPython(insert_migration_data('usage'))
    ]
Пример #5
0
class Migration(migrations.Migration):
    dependencies = [
        ('bakround_applicant', '0002_auto_20180707_1351'),
        ('lookup', '0002_data'),
        ('sites', '0002_alter_domain_unique'),
        ('score', '0001_initial'),
        ('onet', '0002_data'),
    ]

    operations = [
        migrations.RunPython(insert_migration_data('bakround_applicant')),
        migrations.RunSQL(INSERT_DATA),
        migrations.RunPython(update_site_forward, update_site_backward),
    ]