Commit 6b399f11 by Mariusz Felisiak Committed by Tom Christie

Fixed test_one_to_one_with_inheritance. Added required on_delete attribute to…

Fixed test_one_to_one_with_inheritance. Added required on_delete attribute to OneToOneField field. (#4838)
parent df8f0c8d
......@@ -14,7 +14,7 @@ from tests.test_multitable_inheritance import ChildModel
# Regression test for #4290
class ChildAssociatedModel(RESTFrameworkModel):
child_model = models.OneToOneField(ChildModel)
child_model = models.OneToOneField(ChildModel, on_delete=models.CASCADE)
child_name = models.CharField(max_length=100)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment