Skip to content

Commit a1df35a

Browse files
chore: change .pk to .id
1 parent 09b5dde commit a1df35a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cms/djangoapps/modulestore_migrator

cms/djangoapps/modulestore_migrator/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def _populate_collection(user_id: int, migration: models.ModulestoreMigration) -
430430
)
431431
if block_target_pks:
432432
content_api.add_to_collection(
433-
learning_package_id=migration.target.pk,
433+
learning_package_id=migration.target.id,
434434
collection_code=migration.target_collection.collection_code,
435435
entities_qset=PublishableEntity.objects.filter(id__in=block_target_pks),
436436
created_by=user_id,

0 commit comments

Comments
 (0)