Move side effecting of definition for grader to the course_module and

don't make caller responsible.
This commit is contained in:
Don Mitchell
2013-03-04 15:38:47 -05:00
parent de3a75d29d
commit 020e1e94fb
2 changed files with 4 additions and 11 deletions

View File

@@ -118,8 +118,6 @@ class CourseGradingModel(object):
descriptor.raw_grader[index] = grader
else:
descriptor.raw_grader.append(grader)
# make definition notice the update
descriptor.raw_grader = descriptor.raw_grader
get_modulestore(course_location).update_item(course_location, descriptor.definition['data'])