summaryrefslogtreecommitdiff
path: root/tests/aggregation/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aggregation/models.py')
-rw-r--r--tests/aggregation/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/aggregation/models.py b/tests/aggregation/models.py
index de9dc5550c..9d47946418 100644
--- a/tests/aggregation/models.py
+++ b/tests/aggregation/models.py
@@ -31,8 +31,8 @@ class Book(models.Model):
rating = models.FloatField()
price = models.DecimalField(decimal_places=2, max_digits=6)
authors = models.ManyToManyField(Author)
- contact = models.ForeignKey(Author, related_name='book_contact_set')
- publisher = models.ForeignKey(Publisher)
+ contact = models.ForeignKey(Author, models.CASCADE, related_name='book_contact_set')
+ publisher = models.ForeignKey(Publisher, models.CASCADE)
pubdate = models.DateField()
def __str__(self):