mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
A superuser turns a VM's protection on or off on its Settings tab, not while a job holds the VM (a deletion or a restore over it that runs would not stop). While it is on, its deletion (page, API, a queued job at its start) and a restore of a backup over it are refused; the Destroy tab, the destroy page and the restore page say so. A VM moved outside the panel keeps it. The API shows the flag read-only.
18 lines
407 B
Python
18 lines
407 B
Python
# Generated by Django 5.2.18 on 2026-11-19 18:42
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('instances', '0018_tags'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='instance',
|
|
name='protected',
|
|
field=models.BooleanField(default=False, verbose_name='protected'),
|
|
),
|
|
]
|