def validate_reject(form, field):
        """Validate that accept have not been set."""
        if field.data and form.accept.data:
            raise validators.ValidationError(
                _("Both reject and accept cannot be set at the same time.")
            )
Validate that accept have not been set.