Clear cached children when binding an XModuleDescriptor/XBlock to a particular user

This commit is contained in:
Calen Pennington
2015-02-20 13:11:53 -05:00
parent 9379fd2711
commit de23d6defe
7 changed files with 52 additions and 17 deletions

View File

@@ -213,7 +213,8 @@ def _load_preview_module(request, descriptor):
field_data = LmsFieldData(descriptor._field_data, student_data) # pylint: disable=protected-access
descriptor.bind_for_student(
_preview_module_system(request, descriptor, field_data),
field_data
field_data,
request.user.id
)
return descriptor