1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 09:26:03 +00:00

fix(vmbackups): a schedule run's failure reason in the reader's language

A failed run kept the error as English text and the schedule page passed
the whole sentence to gettext, which found no catalog entry once values
were filled in. The run now keeps the error as messages (text and values),
as jobs do, and the page shows them with the new words filter.
This commit is contained in:
catborise 2026-11-18 14:05:38 +03:00
parent fb6a427a47
commit e1611efd53
7 changed files with 40 additions and 15 deletions

View file

@ -78,7 +78,7 @@ class BackupRun(models.Model):
day = models.DateField() # the local day of the schedule's time
state = models.CharField(max_length=16, choices=STATES)
operation = models.ForeignKey(Operation, on_delete=models.SET_NULL, null=True)
note = models.CharField(max_length=255, blank=True)
note = models.JSONField(default=list) # messages (operations.utils.say), shown in the reader's language
created_at = models.DateTimeField(auto_now_add=True)
class Meta: