def METHOD_NAME(apps, schema_editor):
    VariantTag = apps.get_model("seqr", "VariantTag")
    db_alias = schema_editor.connection.alias
    variant_tags = VariantTag.objects.using(db_alias).all()
    if variant_tags:
        print('Updating saved_variants for {} variant tags'.format(len(variant_tags)))
        for variant_tag in tqdm(variant_tags, unit=' tags'):
            curr_variant_tag = variant_tag.saved_variant
            if curr_variant_tag is None:
                variants_tag = []
            else:
                variants_tag = [curr_variant_tag]
            variant_tag.saved_variants = variants_tag
            variant_tag.save()