mirror of
https://github.com/retspen/webvirtcloud
synced 2026-07-13 15:05:40 +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.conf import settings
|
||||
from django.db import migrations, models
|
||||
from django.db.models import DO_NOTHING
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
|
@ -13,6 +12,6 @@ class Migration(migrations.Migration):
|
|||
migrations.AlterField(
|
||||
model_name='usersshkey',
|
||||
name='user',
|
||||
field=models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=DO_NOTHING),
|
||||
field=models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.DO_NOTHING),
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue