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:
parent
586ad30ad2
commit
7db8d91435
7 changed files with 9 additions and 13 deletions
|
|
@ -1,6 +1,5 @@
|
|||
from django.db import models, migrations
|
||||
from django.conf import settings
|
||||
from django.db.models import CASCADE
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
|
@ -17,7 +16,7 @@ class Migration(migrations.Migration):
|
|||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('keyname', models.CharField(max_length=25)),
|
||||
('keypublic', models.CharField(max_length=500)),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=CASCADE)),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue