summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorStefan Schneider <stefan.schneider@intergga.ch>2017-09-29 17:38:28 +0200
committerTim Graham <timograham@gmail.com>2017-09-29 11:38:47 -0400
commit251190cc5956c835a1d7dd3bd084370f0ec50cb5 (patch)
treed7f8c952605ed9f51d28646453161db814a11a53 /docs/ref
parente8a82e82c148b135a8511ca4ca0f79dea4b7bc78 (diff)
[1.11.x] Fixed #28653 -- Added missing ForeignKey.on_delete argument in docs.
Backport of 08c8c3ead97893ec0e1dece699525ad7ed27c2d7 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index c9f3556f10..4b22def946 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -1074,7 +1074,7 @@ fields. Suppose we have an additional model to the example above::
class Restaurant(models.Model):
pizzas = models.ManyToManyField(Pizza, related_name='restaurants')
- best_pizza = models.ForeignKey(Pizza, related_name='championed_by')
+ best_pizza = models.ForeignKey(Pizza, related_name='championed_by', on_delete=models.CASCADE)
The following are all legal: