From 70622fd975c5b674a9bd7aa88a31c1bc74a2949c Mon Sep 17 00:00:00 2001 From: robin Date: Fri, 23 Jul 2021 10:49:51 +0200 Subject: [PATCH] update doc --- docs/api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api.md b/docs/api.md index 51ba97be..3a20d850 100644 --- a/docs/api.md +++ b/docs/api.md @@ -170,6 +170,8 @@ Currently this is implemented by raising an `BinderValidateOnly` exception, whic It is important to realize that in this way, the normal `save()` function is called on a model, so it is possible that possible side effects are triggered, when these are implemented directly in `save()`, as opposed to in a signal method, which would be preferable. In other words, we cannot guarantee that the request will be idempotent. Therefore, the validation only feature is disabled by default and must be enabled by setting `allow_standalone_validation=True` on the view. +When a model is being validated and not actually being saved the `_validation_model property` of the binder model is set to True. This allows whitelisting of certain validation checks such as with certain relations that are not included with the validation model. + ### Uploading files To upload a file, you have to add it to the `file_fields` of the `ModelView`: