1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #28653 -- Added missing ForeignKey.on_delete argument in docs.

This commit is contained in:
Stefan Schneider
2017-09-29 17:38:28 +02:00
committed by Tim Graham
parent 3fa0a824c2
commit 08c8c3ead9
4 changed files with 4 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ Suppose you have this pair of models, representing a simple blog system::
...
class Entry(models.Model):
blog = models.ForeignKey(Blog)
blog = models.ForeignKey(Blog, on_delete=models.CASCADE)
published = models.DateTimeField(default=datetime.datetime.now)
...