diff --git a/openedx/core/djangoapps/content_libraries/api/containers.py b/openedx/core/djangoapps/content_libraries/api/containers.py index 800cbc0585..886322b731 100644 --- a/openedx/core/djangoapps/content_libraries/api/containers.py +++ b/openedx/core/djangoapps/content_libraries/api/containers.py @@ -192,7 +192,7 @@ def create_container( slug = slugify(title, allow_unicode=True) + '-' + uuid4().hex[-6:] # Make sure the slug is valid by first creating a key for the new container: container_key = LibraryContainerLocator( - library_key=library_key, + library_key, container_type=container_type.value, container_id=slug, ) diff --git a/openedx/core/djangoapps/xblock/api.py b/openedx/core/djangoapps/xblock/api.py index 35c05cd7b4..c806fefc87 100644 --- a/openedx/core/djangoapps/xblock/api.py +++ b/openedx/core/djangoapps/xblock/api.py @@ -19,7 +19,7 @@ from django.utils.translation import gettext as _ from openedx_learning.api import authoring as authoring_api from openedx_learning.api.authoring_models import Component, ComponentVersion from opaque_keys.edx.keys import UsageKeyV2 -from opaque_keys.edx.locator import BundleDefinitionLocator, LibraryUsageLocatorV2 +from opaque_keys.edx.locator import LibraryUsageLocatorV2 from rest_framework.exceptions import NotFound from xblock.core import XBlock from xblock.exceptions import NoSuchUsage, NoSuchViewError