示例#1
0
 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)
示例#2
0
 def save(self):
     self.link = 'witnessings/%s' % get_translit(self.name)
     super(Witnessing,self).save()
示例#3
0
 def save(self):
     self.link = 'people/%s' % get_translit(self.name)
     super(Man,self).save()
示例#4
0
 def save(self):
     self.link = 'videos/%s' % get_translit(self.name)
     super(Video,self).save()
示例#5
0
 def save(self):
     self.link = 'articles/%s' % get_translit(self.name)
     super(Article,self).save()