fix: add default to target_collection_slug (#37391)

adds a default `None` value to the `target_collection_slug` parameter of the migration rest API endpoint, to prevent a `KeyError`.
This commit is contained in:
Rômulo Penido
2025-10-06 15:53:58 -03:00
committed by GitHub
parent 815fd443bb
commit 913598076c

View File

@@ -46,6 +46,7 @@ class ModulestoreMigrationSerializer(serializers.ModelSerializer):
help_text="The target collection slug within the library to import into. Optional.",
required=False,
allow_blank=True,
default=None,
)
forward_source_to_target = serializers.BooleanField(
help_text="Forward references of this block source over to the target of this block migration.",