def get_api_representation(self, value, context=None):
     if value:
         return {
             'name': value['name'],
             'blurb': value['blurb'],
             'icon': build_image_url(value['icon']),
             'cta': value['cta'],
             'url': value['url'],
             'canadian': value['canadian']
         }
示例#2
0
 def get_quote_image(self):
     return build_image_url(self.quote_image)
示例#3
0
 def get_article_image(self):
     return build_image_url(self.featured_image)
示例#4
0
 def get_ally_color_logo(self):
     return build_image_url(self.ally.logo_color)
示例#5
0
 def get_ally_logo(self):
     return build_image_url(self.ally.logo_bw)
 def get_institution_logo(self):
     return build_image_url(self.logo)
示例#7
0
 def get_ally_logo(self):
     return build_image_url(self.ally.logo_bw)
示例#8
0
 def get_institution_logo(self):
     return build_image_url(self.logo)
示例#9
0
 def get_article_image(self):
     return build_image_url(self.featured_image)
示例#10
0
 def get_press_kit(self):
     return build_image_url(self.press_kit)
示例#11
0
 def get_expert_image(self):
     return build_image_url(self.image)
示例#12
0
 def get_ally_color_logo(self):
     return build_image_url(self.ally.logo_color)
示例#13
0
 def get_team_member_image(self):
     return build_image_url(self.image)
示例#14
0
 def get_advisor_image(self):
     return build_image_url(self.image)
示例#15
0
 def get_news_logo(self):
     return build_image_url(self.logo)
示例#16
0
 def get_funder_logo(self):
     return build_image_url(self.logo)
示例#17
0
 def get_advisor_image(self):
     return build_image_url(self.image)
 def get_quote_image(self):
     return build_image_url(self.quote_image)
示例#19
0
 def get_team_member_image(self):
     return build_image_url(self.image)
 def get_funder_logo(self):
     return build_image_url(self.logo)