# Generated by Django 3.2.13 on 2022-09-15 13:40

from django.db import migrations

def migrate_instruments(apps, schema_editor):
    ContentBlock = apps.get_model('books', 'ContentBlock')
    ContentBlock.objects.filter(type__startswith='base_').update(type='instrument')

class Migration(migrations.Migration):

    dependencies = [
        ('books', '0037_alter_contentblock_type'),
    ]

    operations = [
        migrations.RunPython(migrate_instruments, migrations.RunPython.noop)
    ]
