more Long improvements

This commit is contained in:
Ross
2023-05-22 13:29:07 +01:00
parent 4345f46615
commit ae670c738b
8 changed files with 136 additions and 87 deletions
+6
View File
@@ -74,6 +74,12 @@ class QuestionBase(models.Model):
class Meta:
abstract = True
def get_unanswered_mark_and_text(self) -> tuple(int, str):
"""
Override in models if needed
"""
return (0, "Not answered")
class ExamBase(models.Model):
name = models.CharField(max_length=200, help_text="Name of the exam")