This commit is contained in:
Ross
2021-12-12 13:52:21 +00:00
parent 3320132b88
commit 8691868bd8
3 changed files with 9 additions and 2 deletions
+3
View File
@@ -204,6 +204,9 @@ class CidUser(models.Model):
def __str__(self) -> str:
return str(self.cid)
def check_passcode(self, passcode) -> bool:
return self.passcode == passcode
class CidUserExam(models.Model):
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
object_id = models.PositiveIntegerField()