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 <alekratz@gmail.com>
This commit is contained in:
2022-07-12 15:42:59 -07:00
parent 0de62aa63d
commit 1eb960cb23

View File

@@ -88,7 +88,7 @@ class Post(models.Model):
# User's supplied subject for this post # User's supplied subject for this post
subject = models.CharField(max_length=255, null=True, blank=True) subject = models.CharField(max_length=255, null=True, blank=True)
# Text of this post # 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 # The IP address of the user that made this post
ip = models.GenericIPAddressField() ip = models.GenericIPAddressField()
# Capcode # Capcode