From eb91d5df9f579a69d625a82871f2601c67ce7251 Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Wed, 28 Aug 2024 16:15:25 +0930 Subject: [PATCH] fix: send Component.key instead of Component.id to CONTENT_OBJECT_TAGS_CHANGED --- .../content_libraries/collections/rest_api/v1/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/content_libraries/collections/rest_api/v1/views.py b/openedx/core/djangoapps/content_libraries/collections/rest_api/v1/views.py index ef381c5da73..b9ba32e9037 100644 --- a/openedx/core/djangoapps/content_libraries/collections/rest_api/v1/views.py +++ b/openedx/core/djangoapps/content_libraries/collections/rest_api/v1/views.py @@ -225,7 +225,7 @@ def update_contents(self, request, lib_key_str, pk=None): count = authoring_api.add_to_collections(collections_qset, contents_qset) # Emit a CONTENT_OBJECT_TAGS_CHANGED event for each of the objects added/removed - object_ids = contents_qset.values_list("pk", flat=True) + object_ids = contents_qset.values_list("key", flat=True) for object_id in object_ids: CONTENT_OBJECT_TAGS_CHANGED.send_event( content_object=ContentObjectData(object_id=object_id),