Skip to content

Commit fb80233

Browse files
committed
Fix one Django-master error
1 parent fab687c commit fb80233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polymorphic/tests/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class InlineParent(models.Model):
421421

422422

423423
class InlineModelA(PolymorphicModel):
424-
parent = models.ForeignKey(InlineParent, related_name='inline_children')
424+
parent = models.ForeignKey(InlineParent, related_name='inline_children', on_delete=models.CASCADE)
425425
field1 = models.CharField(max_length=10)
426426

427427

0 commit comments

Comments
 (0)