Commit fb25a2c2 by Chris Dodge

add uniqueness constraint as the same user should not have two exam attempts on the same exam

parent 1829df16
......@@ -229,6 +229,7 @@ class ProctoredExamStudentAttempt(TimeStampedModel):
""" Meta class for this Django model """
db_table = 'proctoring_proctoredexamstudentattempt'
verbose_name = 'proctored exam attempt'
unique_together = (('user', 'proctored_exam'),)
@property
def is_active(self):
......
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