Skip to content

Commit 1ac6de2

Browse files
chore: libraries - remove usage of deprecated key types / params (#36563)
1 parent 57658b7 commit 1ac6de2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

openedx/core/djangoapps/content_libraries/api/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def create_container(
192192
slug = slugify(title, allow_unicode=True) + '-' + uuid4().hex[-6:]
193193
# Make sure the slug is valid by first creating a key for the new container:
194194
container_key = LibraryContainerLocator(
195-
library_key=library_key,
195+
library_key,
196196
container_type=container_type.value,
197197
container_id=slug,
198198
)

openedx/core/djangoapps/xblock/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from openedx_learning.api import authoring as authoring_api
2020
from openedx_learning.api.authoring_models import Component, ComponentVersion
2121
from opaque_keys.edx.keys import UsageKeyV2
22-
from opaque_keys.edx.locator import BundleDefinitionLocator, LibraryUsageLocatorV2
22+
from opaque_keys.edx.locator import LibraryUsageLocatorV2
2323
from rest_framework.exceptions import NotFound
2424
from xblock.core import XBlock
2525
from xblock.exceptions import NoSuchUsage, NoSuchViewError

0 commit comments

Comments
 (0)