chore: libraries - remove usage of deprecated key types / params (#36563)
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user