Commit 93b1b698 by Calen Pennington

Don't violate the empty-dict vs None semantics of student_module during delete_many

parent d502987c
......@@ -253,7 +253,7 @@ class DjangoXBlockUserStateClient(XBlockUserStateClient):
student_modules = self._get_student_modules(username, block_keys)
for student_module, _ in student_modules:
if fields is None:
student_module.state = None
student_module.state = "{}"
else:
current_state = json.loads(student_module.state)
for field in fields:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment