Add and clean up __repr__ and __str__ for XModule-related things

This commit is contained in:
Calen Pennington
2015-03-03 14:14:32 -05:00
parent 8fbb64322b
commit 4ef53135ae
3 changed files with 26 additions and 2 deletions

View File

@@ -33,3 +33,6 @@ class LmsFieldData(SplitFieldData):
Scope.user_info: student_data,
Scope.preferences: student_data,
})
def __repr__(self):
return "LmsFieldData{!r}".format((self._authored_data, self._student_data))