File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
openedx/core/djangoapps/content_tagging/rest_api/v1 Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2727 name = "taxonomy-import-template" ,
2828 ),
2929 path (
30- "object_tags/<str:object_id >/export/" ,
30+ "object_tags/<str:context_id >/export/" ,
3131 views .ObjectTagExportView .as_view (),
3232 ),
3333 path ('' , include (router .urls ))
Original file line number Diff line number Diff line change @@ -150,11 +150,11 @@ class ObjectTagOrgView(ObjectTagView):
150150
151151class ObjectTagExportView (APIView ):
152152 """"
153- View to export a CSV with all children and tags for a given object_id .
153+ View to export a CSV with all children and tags for a given course/context .
154154 """
155155 def get (self , request : Request , ** kwargs ) -> StreamingHttpResponse :
156156 """
157- Export a CSV with all children and tags for a given object_id .
157+ Export a CSV with all children and tags for a given course/context .
158158 """
159159
160160 class Echo (object ):
@@ -197,12 +197,12 @@ def _generate_csv_rows() -> Iterator[str]:
197197
198198 yield csv_writer .writerow (block_data )
199199
200- object_id : str = kwargs .get ('object_id ' , None )
200+ object_id : str = kwargs .get ('context_id ' , None )
201201
202202 try :
203203 content_key = CourseKey .from_string (object_id )
204204 except InvalidKeyError as e :
205- raise ValidationError ("object_id is not a valid content key." ) from e
205+ raise ValidationError ("context_id is not a valid course key." ) from e
206206
207207 # Check if the user has permission to view object tags for this object_id
208208 try :
You can’t perform that action at this time.
0 commit comments