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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user