chore: libraries - remove usage of deprecated key types / params (#36563)

This commit is contained in:
Braden MacDonald
2025-04-21 18:47:29 -07:00
committed by GitHub
parent 57658b78d2
commit 1ac6de2ec0
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
)

View File

@@ -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