From 1eb960cb234414f745fce693a3ba629aa9dd8af6 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Tue, 12 Jul 2022 15:42:59 -0700 Subject: [PATCH] Limit post max length to 2k instead of 10k 10k is a little too long for this style of social media. Signed-off-by: Alek Ratzloff --- board/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/models.py b/board/models.py index 12c4c30..634d936 100644 --- a/board/models.py +++ b/board/models.py @@ -88,7 +88,7 @@ class Post(models.Model): # User's supplied subject for this post subject = models.CharField(max_length=255, null=True, blank=True) # Text of this post - text = models.TextField(max_length=10000, null=False, blank=True) + text = models.TextField(max_length=2000, null=False, blank=True) # The IP address of the user that made this post ip = models.GenericIPAddressField() # Capcode