mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 09:26:03 +00:00
The host's VM list showed every migration of a bulk migration as a job of its own (each holds the host), and kept a card for each when it ended: 20 VMs, 20 cards down the page. The migrations a bulk migration starts now name it as their parent, and a page leaves out a job whose parent is that page's own: the host page shows the bulk migration, with how many of its VMs are done as its progress; each migration still shows on its VM's page and the Jobs page. A page also shows the jobs it is the page of, not only those holding it: the bulk migration holds no claim on the host.
19 lines
510 B
Python
19 lines
510 B
Python
# Generated by Django 5.2.18 on 2026-11-15 16:59
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('operations', '0003_client_ip'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='operation',
|
|
name='parent',
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='children', to='operations.operation'),
|
|
),
|
|
]
|