add more detail to new CourseModesArchive table

This commit is contained in:
Chris Dodge
2014-07-31 12:59:05 -04:00
parent 932010df59
commit a1248f614e

View File

@@ -132,8 +132,10 @@ class CourseMode(models.Model):
class CourseModesArchive(models.Model):
"""
Store the CourseModesArchives in this model
Store the past values of course_mode that a course had in the past. We decided on having
separate model, because there is a uniqueness contraint on (course_mode, course_id)
field pair in CourseModes. Having a separate table allows us to have an audit trail of any changes
such as course price changes
"""
# the course that this mode is attached to
course_id = CourseKeyField(max_length=255, db_index=True)