Skip to content

Commit

Permalink
fix: add created_by parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Aug 19, 2024
1 parent 9417609 commit 9cdd1e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openedx_learning/apps/authoring/collections/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
def create_collection(
learning_package_id: int,
title: str,
created_by: int | None,
description: str = "",
) -> Collection:
"""
Expand All @@ -31,6 +32,7 @@ def create_collection(
collection = Collection.objects.create(
learning_package_id=learning_package_id,
title=title,
created_by=created_by,
description=description,
)
return collection
Expand Down

0 comments on commit 9cdd1e7

Please sign in to comment.