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