Skip to content

Commit

Permalink
on_delete is required for django 2.0 and later (#1405)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtb-beta committed Aug 6, 2021
1 parent b2b9006 commit 3e3015a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Let's start with our model::
price = models.DecimalField(max_digits=5, decimal_places=2)
description = models.TextField()
release_date = models.DateField()
manufacturer = models.ForeignKey(Manufacturer)
manufacturer = models.ForeignKey(Manufacturer, on_delete=models.CASCADE)

The filter
----------
Expand Down

0 comments on commit 3e3015a

Please sign in to comment.