mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +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
13
vmbackups/migrations/0006_run_note_messages.py
Normal file
13
vmbackups/migrations/0006_run_note_messages.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
"""A run's note becomes messages, shown in the reader's language; the
|
||||
English notes of earlier runs are dropped."""
|
||||
|
||||
dependencies = [("vmbackups", "0005_owners")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(model_name="backuprun", name="note"),
|
||||
migrations.AddField(model_name="backuprun", name="note", field=models.JSONField(default=list)),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue