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