diff --git a/commcare_connect/opportunity/tasks.py b/commcare_connect/opportunity/tasks.py index 8d4aa044..227e1a79 100644 --- a/commcare_connect/opportunity/tasks.py +++ b/commcare_connect/opportunity/tasks.py @@ -22,8 +22,9 @@ def create_learn_modules_assessments(opportunity_id): for block in connect_blocks: LearnModule.objects.update_or_create( app=learn_app, - name=block.name, + slug=block.id, defaults={ + "name": block.name, "description": block.description, "time_estimate": block.time_estimate, },