django2.2: add on_delete on migrations for OneToOneField

This commit is contained in:
2019-10-06 00:38:25 +02:00
parent 3cb306bc91
commit f7548ab8d1
11 changed files with 37 additions and 6 deletions

View File

@ -232,7 +232,9 @@ class Migration(migrations.Migration):
(
"user",
models.OneToOneField(
to=settings.AUTH_USER_MODEL, related_name="_forum_infos"
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
related_name="_forum_infos",
),
),
],