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:
parent
fb6a427a47
commit
e1611efd53
7 changed files with 40 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue