Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone validation (T30324) #167

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

jeroenvanriel
Copy link
Contributor

This implements standalone validation, so only checking if there are validation errors without actually executing the create/update/delete action.

See docs/api.md for further explanation.

@jeroenvanriel jeroenvanriel changed the title Standalone validation Standalone validation (T30324) Mar 29, 2021
binder/views.py Outdated
params = QueryDict(request.body)
raise BinderSkipSave
else:
raise BinderRequestError('Standalone validation not enabled. You must enable this feature explicitly.')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add in the error a small description on how to enable this standalone_validation? e.g. add allow_standalone_validation = True on the model Foo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants