Delete two lines. without this, the xblock fields are never created in cases where the module is "fresh" (ie has no existing data)

This commit is contained in:
Vik Paruchuri
2013-05-07 16:56:08 -04:00
parent 1398b55713
commit e0d1eca6aa

View File

@@ -203,9 +203,7 @@ class CombinedOpenEndedModule(CombinedOpenEndedFields, XModule):
def save_instance_data(self):
for attribute in self.student_attributes:
child_attr = getattr(self.child_module, attribute)
if child_attr != getattr(self, attribute):
setattr(self, attribute, getattr(self.child_module, attribute))
setattr(self, attribute, getattr(self.child_module, attribute))
class CombinedOpenEndedDescriptor(CombinedOpenEndedFields, RawDescriptor):