From c2e70f02653519db3a49cd48f5158ccad7434d25 Mon Sep 17 00:00:00 2001 From: Flavio Curella Date: Wed, 22 Jul 2015 09:43:21 -0500 Subject: Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField --- tests/admin_scripts/app_with_import/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/admin_scripts/app_with_import') diff --git a/tests/admin_scripts/app_with_import/models.py b/tests/admin_scripts/app_with_import/models.py index 3741541628..bf49e8f477 100644 --- a/tests/admin_scripts/app_with_import/models.py +++ b/tests/admin_scripts/app_with_import/models.py @@ -5,4 +5,4 @@ from django.db import models # Regression for #13368. This is an example of a model # that imports a class that has an abstract base class. class UserProfile(models.Model): - user = models.OneToOneField(User, primary_key=True) + user = models.OneToOneField(User, models.CASCADE, primary_key=True) -- cgit v1.3