def clean_avatar(self): avatar = self.cleaned_data['avatar'] return strip_img_metadata(avatar)
def clean_file(self): cleaned_file = self.cleaned_data['file'] stripped_file = strip_img_metadata(cleaned_file) return stripped_file