Skip to content

Instantly share code, notes, and snippets.

@kriwil
Created February 24, 2015 12:50
Show Gist options
  • Save kriwil/9cfd9d9c888715896129 to your computer and use it in GitHub Desktop.
Save kriwil/9cfd9d9c888715896129 to your computer and use it in GitHub Desktop.
course_fields = {
'labster_demo': False,
'is_browsable': False,
'invitation_only': True,
'max_student_enrollments_allowed': 3,
'labster_license': True,
}
if fields:
course_fields.update(fields)
course = mstore.get_course(dest_course_id)
for key, value in course_fields.items():
setattr(course, key, value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment