Skip to content

Commit

Permalink
refactor: link groups to partitions if required vars are available
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Aug 28, 2023
1 parent a456c52 commit 207462f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lms/djangoapps/teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,9 @@ def post(self, request):
course_key,
professor=professor,
)
link_group_to_partition_group(group, data["user_partition_id"], data["content_group"])
if request.data.get("user_partition_id") and request.data.get("content_group"):
link_group_to_partition_group(group, request.data["user_partition_id"], request.data["content_group"])

return Response(data)

def get_page(self):
Expand Down

0 comments on commit 207462f

Please sign in to comment.