def clean_image(self):
        if "#" in self.cleaned_data["image"].name:
            raise forms.ValidationError(
                _("Image filename contains an invalid character: '#'. Please remove the character and try again."))
        return self.cleaned_data["image"]
dataset/ETHPy150Open amarandon/smeuhsocial/apps/photos/forms.py/PhotoUploadForm.clean_image/original