# Generated by Django 5.0.2 on 2024-02-26 11:40

from django.db import migrations, models

def move_radiology_categories(apps, schema_editor):
    Item = apps.get_model("rcr", "Item")
    #RadiologyCategory = apps.get_model("rcr", "RadiologyCategory")
    for item in Item.objects.all():
        if item.radiology_category:
            item.radiology_categories.add(item.radiology_category)


class Migration(migrations.Migration):

    dependencies = [
        ('rcr', '0020_item_radiology_categories'),
    ]

    operations = [
        migrations.RunPython(move_radiology_categories),
    ]
