Add character limit and check validation of messages in Chat

This commit is contained in:
anhkha2003 2024-01-16 00:46:18 -06:00
parent 995ff88c87
commit 89f396ff23
7 changed files with 43 additions and 10 deletions

View file

@ -66,7 +66,6 @@ class Message(models.Model):
)
def save(self, *args, **kwargs):
new_message = self.id
self.body = self.body.strip()
super(Message, self).save(*args, **kwargs)