Exemplo n.º 1
0
 def heading(self):
     return call_if_callable(getattr(self.obj, 'heading', 'no heading defined'))
Exemplo n.º 2
0
 def url(self):
     return call_if_callable(getattr(self.obj, 'get_absolute_url', ""))
Exemplo n.º 3
0
 def metatag(self):
     return call_if_callable(getattr(self.obj, 'metatag', 'no metatag defined'))
Exemplo n.º 4
0
 def text(self):
     return call_if_callable(getattr(self.obj, 'text', self.title()))
Exemplo n.º 5
0
 def short_text(self):
     return call_if_callable(getattr(self.obj, 'short_text', self.text()))
Exemplo n.º 6
0
 def heading(self):
     return call_if_callable(getattr(self.obj, 'heading', ''))
Exemplo n.º 7
0
 def metatag(self):
     return call_if_callable(getattr(self.obj, 'metatag', 'no metatag defined'))
Exemplo n.º 8
0
 def url(self):
     return call_if_callable(getattr(self.obj, 'get_absolute_url', ""))
Exemplo n.º 9
0
 def short_text(self):
     return call_if_callable(getattr(self.obj, 'short_text', self.text()))
Exemplo n.º 10
0
 def text(self):
     return call_if_callable(getattr(self.obj, 'text', self.title()))