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:
committed by
Tim Graham
parent
3fa0a824c2
commit
08c8c3ead9
@@ -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)
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user