return textInput

def clean_fileFieldName(self):
    fileInput = self.cleaned_data.get('fileFieldName')
textInput = self.cleaned_data.get('textBoxFieldName')
if not fileInput and not textInput:
    raise ValidationError(
        'You must provide the file input if not entering the full path')
return fileInput
Как сделать FileField в django необязательным?