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

@ -26,6 +26,7 @@ class Migration(migrations.Migration):
(
"counter",
models.OneToOneField(
on_delete=django.db.models.deletion.CASCADE,
related_name="launderette",
verbose_name="counter",
to="counter.Counter",