Ejemplo n.º 1
0
 def image(self):
     if self.topic_img_id:
         return Image.get_img_by_id(self.topic_img_id).url
     else:
         return None
Ejemplo n.º 2
0
 def head_img_url(self):
     return Image.get_img_by_id(self.head_img_id).url
Ejemplo n.º 3
0
 def img_url(self):
     return Image.get_img_by_id(id=self.img_id).url
Ejemplo n.º 4
0
	def head_img_url(self):
		return Image.get_img_by_id(self.head_img_id).url
Ejemplo n.º 5
0
 def topic_img_url(self):
     return Image.get_img_by_id(self.topic_img_id).url
Ejemplo n.º 6
0
	def topic_img_url(self):
		return Image.get_img_by_id(self.topic_img_id).url
Ejemplo n.º 7
0
	def img(self):
		return Image.get_img_by_id(id=self.img_id)
Ejemplo n.º 8
0
 def img_url(self):
     img = Image.get_img_by_id(id=self.img_id)
     return img.url
Ejemplo n.º 9
0
 def snap_img(self):
     return Image.get_img_by_id(self.snap_img_id).url
Ejemplo n.º 10
0
 def main_img(self):
     return Image.get_img_by_id(self.main_img_id).url