Пример #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()