mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Fixed test_one_to_one_with_inheritance. Added required on_delete attribute to OneToOneField field. (#4838)
This commit is contained in:
parent
df8f0c8de9
commit
6b399f1193
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user