1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/vmbackups/migrations/0006_run_note_messages.py
catborise e1611efd53 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.
2026-11-18 14:05:38 +03:00

13 lines
456 B
Python

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)),
]