Add timestamps for answer tracking in report models and views; enhance timer display in templates
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user