created new setting

STRICT_PARTIAL_UPDATE gates the use of update_fields when saving instance during a partial update
This commit is contained in:
Christian 2022-05-14 21:51:37 +01:00 committed by GitHub
parent f555c79724
commit be7d942349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,9 @@ DEFAULTS = {
# Generic view behavior # Generic view behavior
'DEFAULT_PAGINATION_CLASS': None, 'DEFAULT_PAGINATION_CLASS': None,
'DEFAULT_FILTER_BACKENDS': [], 'DEFAULT_FILTER_BACKENDS': [],
# Model view behavior
'STRICT_PARTIAL_UPDATE': False,
# Schema # Schema
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.openapi.AutoSchema', 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.openapi.AutoSchema',