def save(self): self.link = 'photogallery/%s' % get_translit(self.name) super(PhotoAlbum,self).save() #changing cover size temp = self.cover.path img = Image.open(self.cover.path) img.thumbnail((200,200), Image.ANTIALIAS) img.save(self.cover.path, 'JPEG', quality=100)
def save(self): self.link = 'witnessings/%s' % get_translit(self.name) super(Witnessing,self).save()
def save(self): self.link = 'people/%s' % get_translit(self.name) super(Man,self).save()
def save(self): self.link = 'videos/%s' % get_translit(self.name) super(Video,self).save()
def save(self): self.link = 'articles/%s' % get_translit(self.name) super(Article,self).save()