summaryrefslogtreecommitdiff
path: root/tests/db_functions
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db_functions')
-rw-r--r--tests/db_functions/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/db_functions/models.py b/tests/db_functions/models.py
index f100b79ff5..788fe01b9f 100644
--- a/tests/db_functions/models.py
+++ b/tests/db_functions/models.py
@@ -37,7 +37,7 @@ class Article(models.Model):
class Fan(models.Model):
name = models.CharField(max_length=50)
age = models.PositiveSmallIntegerField(default=30)
- author = models.ForeignKey(Author, related_name='fans')
+ author = models.ForeignKey(Author, models.CASCADE, related_name='fans')
def __str__(self):
return self.name