def METHOD_NAME(apps, _schema_editor):
    DigitalContent = apps.get_model("product", "DigitalContent")
    for digital_content in DigitalContent.objects.iterator():
        flatten_model_metadata(digital_content)