def validate(self, value):
        if value in validators.EMPTY_VALUES and self.required:
            raise ValidationError(self.error_messages['required'])
dataset/ETHPy150Open adieu/django-nonrel/django/forms/fields.py/Field.validate/original