Add character limit and check validation of messages in Chat
This commit is contained in:
parent
995ff88c87
commit
89f396ff23
7 changed files with 43 additions and 10 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue