Beispiel #1
0
 def __unicode__(self):
     return self.subject or format_subject(self.body, from_body=True) 
Beispiel #2
0
 def save(self):
     "This method is overridden to clean data."
     if self.subject:
         self.subject = format_subject(self.subject)
     self.body = format_body(self.body)
     super(Message, self).save()
Beispiel #3
0
 def clean_subject(self):
     return format_subject(self.cleaned_data['subject'])