Commit a1248f61 by Chris Dodge

add more detail to new CourseModesArchive table

parent 932010df
...@@ -132,8 +132,10 @@ class CourseMode(models.Model): ...@@ -132,8 +132,10 @@ class CourseMode(models.Model):
class CourseModesArchive(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 # the course that this mode is attached to
course_id = CourseKeyField(max_length=255, db_index=True) course_id = CourseKeyField(max_length=255, db_index=True)
......
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