We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e01dcde commit 39512e9Copy full SHA for 39512e9
feincms/content/section/models.py
@@ -35,7 +35,8 @@ class SectionContent(models.Model):
35
title = models.CharField(_('title'), max_length=200, blank=True)
36
richtext = RichTextField(_('text'), blank=True)
37
mediafile = MediaFileForeignKey(
38
- MediaFile, verbose_name=_('media file'),
+ MediaFile, on_delete=models.CASCADE,
39
+ verbose_name=_('media file'),
40
related_name='+', blank=True, null=True)
41
42
class Meta:
0 commit comments