Add timestamps for answer tracking in report models and views; enhance timer display in templates

This commit is contained in:
Ross
2025-10-13 10:02:37 +01:00
parent 6f99cf0d53
commit a355dd223e
4 changed files with 113 additions and 1 deletions
+4
View File
@@ -1376,6 +1376,10 @@ class BaseReportAnswer(models.Model):
)
completed = models.BooleanField(default=False)
# Timestamp when the user first loaded the question (started answering)
started_at = models.DateTimeField(null=True, blank=True)
# Timestamp when the answer was submitted/saved
submitted_at = models.DateTimeField(null=True, blank=True)
def save(self, *args, **kwargs):
self.clean()