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