From 45e83b89419af79585a46815016ed78dd10c539a Mon Sep 17 00:00:00 2001 From: Jakob Wierzba Date: Wed, 30 Oct 2024 17:13:23 +0100 Subject: [PATCH] fix postupload / plaintext get_differences default error --- froide/foirequest/models/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/froide/foirequest/models/message.py b/froide/foirequest/models/message.py index e6dbe612a..69eca030b 100644 --- a/froide/foirequest/models/message.py +++ b/froide/foirequest/models/message.py @@ -152,7 +152,7 @@ class FoiMessage(models.Model): subject_redacted = models.CharField( _("Redacted Subject"), blank=True, max_length=255 ) - plaintext = models.TextField(_("plain text"), blank=True, null=True) + plaintext = models.TextField(_("plain text"), blank=True, null=False, default="") plaintext_redacted = models.TextField( _("redacted plain text"), blank=True, null=True )