mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
django2.2: add on_delete on migrations for ForeignKey
This commit is contained in:
@ -126,6 +126,7 @@ class Migration(migrations.Migration):
|
||||
model_name="trombicomment",
|
||||
name="author",
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="trombi.TrombiUser",
|
||||
verbose_name="author",
|
||||
related_name="given_comments",
|
||||
@ -135,6 +136,7 @@ class Migration(migrations.Migration):
|
||||
model_name="trombicomment",
|
||||
name="target",
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="trombi.TrombiUser",
|
||||
verbose_name="target",
|
||||
related_name="received_comments",
|
||||
|
Reference in New Issue
Block a user