mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 00:19:53 +03:00
created new setting
STRICT_PARTIAL_UPDATE gates the use of update_fields when saving instance during a partial update
This commit is contained in:
parent
f555c79724
commit
be7d942349
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user