Drop CSM FK on history

This commit is contained in:
Cory Lee
2019-06-21 14:05:20 -04:00
parent 566cd9775d
commit 6ee9b0bcab

View File

@@ -242,7 +242,7 @@ class StudentModuleHistory(BaseStudentModuleHistory):
app_label = "courseware"
get_latest_by = "created"
student_module = models.ForeignKey(StudentModule, db_index=True, on_delete=models.CASCADE)
student_module = models.ForeignKey(StudentModule, db_index=True, db_constraint=False, on_delete=models.CASCADE)
def __unicode__(self):
return unicode(repr(self))