From 42bfb3c0d5805bbd57859daf496f3a5306e7609e Mon Sep 17 00:00:00 2001 From: kthoden Date: Wed, 12 Feb 2020 17:06:02 +0100 Subject: [PATCH] Make deletion easier, closes #2 --- eoaforthcoming/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eoaforthcoming/models.py b/eoaforthcoming/models.py index ceca025..3b9537d 100644 --- a/eoaforthcoming/models.py +++ b/eoaforthcoming/models.py @@ -39,7 +39,7 @@ def __str__(self): class EOAForthcomingModel(CMSPlugin): eoaforthcoming = models.ForeignKey( - Forthcoming, on_delete=models.PROTECT + Forthcoming, on_delete=models.CASCADE ) # functions: