This commit is contained in:
Ross
2025-12-09 12:16:59 +00:00
parent c63d4d1585
commit e6943ccfc7
5 changed files with 76 additions and 4 deletions
+4
View File
@@ -180,6 +180,10 @@ class RotaRun(models.Model):
result = models.JSONField(null=True, blank=True)
log = models.TextField(blank=True)
# Optional HTML export produced by a run (stored inline for convenience).
# May be large; keep nullable to avoid breaking existing runs.
export_html = models.TextField(null=True, blank=True)
def mark_running(self):
self.status = self.STATUS_RUNNING
self.started_at = timezone.now()