From be7d9423498abaaff9125b3403aff81442b23595 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 14 May 2022 21:51:37 +0100 Subject: [PATCH] created new setting STRICT_PARTIAL_UPDATE gates the use of update_fields when saving instance during a partial update --- rest_framework/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest_framework/settings.py b/rest_framework/settings.py index 9eb4c5653..3d32ed40c 100644 --- a/rest_framework/settings.py +++ b/rest_framework/settings.py @@ -50,6 +50,9 @@ DEFAULTS = { # Generic view behavior 'DEFAULT_PAGINATION_CLASS': None, 'DEFAULT_FILTER_BACKENDS': [], + + # Model view behavior + 'STRICT_PARTIAL_UPDATE': False, # Schema 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.openapi.AutoSchema',