1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Fix on_delete of ForeignKey and OneToOneField for migrations

This commit is contained in:
Gao Jiangmiao 2019-08-19 09:12:19 +08:00
parent 586ad30ad2
commit 7db8d91435
7 changed files with 9 additions and 13 deletions

View file

@ -14,7 +14,7 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=20)),
('uuid', models.CharField(max_length=36)),
('compute', models.ForeignKey(to='computes.Compute')),
('compute', models.ForeignKey(to='computes.Compute', on_delete=models.CASCADE)),
],
options={
},