From 191230328105e33c7976cc0bbe2f74551e2f1284 Mon Sep 17 00:00:00 2001 From: alex-eri Date: Thu, 8 Apr 2021 14:40:58 +0300 Subject: [PATCH] FilerFileField is ForeignKey in new Filer. Needs on_delete --- cmsplugin_pdf/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cmsplugin_pdf/models.py b/cmsplugin_pdf/models.py index c893d5c..0e9b5ca 100644 --- a/cmsplugin_pdf/models.py +++ b/cmsplugin_pdf/models.py @@ -36,6 +36,7 @@ class PDFPluginModel(CMSPlugin): file = FilerFileField( verbose_name=_('File'), + on_delete=models.CASCADE, ) image = models.ImageField(