'Automatically set message title'

def save(self, *args, **kwargs):

    if (not self.title):
        self.title = self.body
        self.title = re.split('<[^>]+?>', self.title)
        self.title = ''.join(self.title)
        self.title = self.title[:50]
    super(Message, self).save(*args, **kwargs)
