def save(self, *args, **kwargs): if self.avatar: self.avatar.name = downcode(self.avatar.name) super(User, self).save(*args, **kwargs)
def save(self, *args, **kwargs): if self.photo: self.photo.name = downcode(self.photo.name) super(Child, self).save(*args, **kwargs)
def save(self, *args, **kwargs): if self.image: self.image.name = downcode(self.image.name) super(Image, self).save(*args, **kwargs)