Skip to content
Snippets Groups Projects
Commit 11763f3a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[backend] Make parent/child relationship a o2o field

parent 974b88a5
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -142,7 +142,7 @@ class Migration(migrations.Migration):
('end_date', models.DateTimeField(null=True, blank=True)),
('split_errors', models.PositiveIntegerField(default=0)),
('block', models.OneToOneField(related_name='job', on_delete=models.deletion.CASCADE, to='experiments.Block', null=True)),
('parent', models.ForeignKey(related_name='child', to='backend.Job', null=True)),
('parent', models.OneToOneField(related_name='child', to='backend.Job', null=True, on_delete=models.deletion.SET_NULL)),
('result', models.ForeignKey(to='backend.Result', null=True)),
],
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment