diff options
Diffstat (limited to 'django/contrib/contenttypes/fields.py')
| -rw-r--r-- | django/contrib/contenttypes/fields.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py index f5c1804a35..6548c39b4b 100644 --- a/django/contrib/contenttypes/fields.py +++ b/django/contrib/contenttypes/fields.py @@ -303,6 +303,7 @@ class GenericRelation(ForeignObject): ) kwargs['blank'] = True + kwargs['on_delete'] = models.CASCADE kwargs['editable'] = False kwargs['serialize'] = False |
