def tag(self): i = self.image obj = getattr(self, self.fk_name) #title = self.title or ('eRacks %s %s' % (obj.sku, i.filename)) title = self.title or ('%s %s' % (obj.name, i.filename)) return tags.img(src=i.url, title=title, alt=title, width=i.width, height=i.height)
def tag (self): i = self.image obj = getattr (self, self.fk_name) #title = self.title or ('eRacks %s %s' % (obj.sku, i.filename)) title = self.title or ('%s %s' % (obj.name, i.filename)) return tags.img (src=i.url, title=title, alt=title, width=i.width, height=i.height)
def tag(self): #i = self.image return tags.img(src=self.image.url, title=self.title, width=self.image.width, height=self.image.height)
def tag (self): #i = self.image return tags.img (src=self.image.url, title=self.title, width=self.image.width, height=self.image.height)