Exemplo n.º 1
0
 def adm_text(self):
     '''
     returns an excerpt of 100 characters of self.text,
     with the html tags stripped
     '''
     return strip_tags(misc.get_excerpt(self.text, 75, '...'))
Exemplo n.º 2
0
 def adm_publication(self):
     return misc.get_excerpt(self.publication.title, 20, '-')