Example #1
0
 def save(self, *args, **kwargs):
     if self.avatar:
         self.avatar.name = downcode(self.avatar.name)
     super(User, self).save(*args, **kwargs)
Example #2
0
 def save(self, *args, **kwargs):
     if self.photo:
         self.photo.name = downcode(self.photo.name)
     super(Child, self).save(*args, **kwargs)
Example #3
0
 def save(self, *args, **kwargs):
     if self.image:
         self.image.name = downcode(self.image.name)
     super(Image, self).save(*args, **kwargs)