django-rest-framework/rest_framework
Reupen Shah 3242adf058 Enforce allow_empty=False during partial validation of parent serializer (#6512)
Refs #6509

This enforces allow_empty=True when a ListSerializer is a child of another serializer and partial validation is being performed on the parent serializer.

This is because partial validation should allow fields to be omitted, but should not cause values that are invalid without partial validation to become valid.

This effectively reverts #4222. None of the tests added in that PR fail if the associated change is removed, so I‘m not sure what that PR was trying to fix.
2019-07-01 13:30:16 +01:00
..
authtoken TokenAdmin: add 'user' to autocomplete_fields (#6762) 2019-06-28 13:44:15 +01:00
locale Version 3.7.4 Release (#5650) 2017-12-20 15:28:31 +01:00
management Add --urlconf to the generateschema command (#6696) 2019-06-09 15:23:52 +02:00
schemas Retain declared path ordering in OpenAPI YAML output. (#6680) 2019-06-09 14:58:02 +02:00
static/rest_framework upgrade jQuery to latest version (#6728) 2019-07-01 13:16:21 +01:00
templates/rest_framework upgrade jQuery to latest version (#6728) 2019-07-01 13:16:21 +01:00
templatetags Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
utils Improve performance of lazy validation message formatting (#6709) 2019-05-29 11:32:03 -07:00
__init__.py Remove 3.10 deprecations (#6687) 2019-05-21 10:36:55 -07:00
apps.py Make DEFAULT_PAGINATION_CLASS None by default. (#5170) 2017-09-25 15:36:30 +02:00
authentication.py Replace all usage ugettext functions with the non-u versions (#6634) 2019-05-01 07:49:54 +02:00
checks.py Clarify pagination system check (#5524) 2017-10-23 12:31:59 +02:00
compat.py Update markdown preprocessor registration (#6722) 2019-05-31 14:11:58 -07:00
decorators.py Remove old documentation (#6765) 2019-06-28 16:03:00 -07:00
documentation.py Allowed customising API documentation code samples (#5752) 2018-01-25 09:39:03 +01:00
exceptions.py Replace all usage ugettext functions with the non-u versions (#6634) 2019-05-01 07:49:54 +02:00
fields.py [fields] Format error message only if params exist (#6624) 2019-07-01 13:28:16 +01:00
filters.py Remove 3.10 deprecations (#6687) 2019-05-21 10:36:55 -07:00
generics.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
metadata.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
mixins.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
negotiation.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
pagination.py Fix CursorPagination when objects get deleted between calls (#6504) (#6593) 2019-05-20 14:41:31 +01:00
parsers.py Remove unnecessary assignments immediately before a return statement (#6619) 2019-05-01 07:51:54 +02:00
permissions.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
relations.py Replace all usage ugettext functions with the non-u versions (#6634) 2019-05-01 07:49:54 +02:00
renderers.py Retain declared path ordering in OpenAPI YAML output. (#6680) 2019-06-09 14:58:02 +02:00
request.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
response.py Remove unnecessary bytes() calls (#6626) 2019-05-30 15:05:27 -07:00
reverse.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
routers.py Remove 3.10 deprecations (#6687) 2019-05-21 10:36:55 -07:00
serializers.py Enforce allow_empty=False during partial validation of parent serializer (#6512) 2019-07-01 13:30:16 +01:00
settings.py Added OpenAPI Schema Generation. (#6532) 2019-05-13 16:07:03 +02:00
status.py Add Multiple HTTP Statuses (#6706) 2019-05-30 14:32:46 -07:00
test.py Remove unnecessary bytes() calls (#6626) 2019-05-30 15:05:27 -07:00
throttling.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
urlpatterns.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
urls.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
validators.py Replace all usage ugettext functions with the non-u versions (#6634) 2019-05-01 07:49:54 +02:00
versioning.py Replace all usage ugettext functions with the non-u versions (#6634) 2019-05-01 07:49:54 +02:00
views.py Always call all throttling classes on the view when checking throttles (#6711) 2019-05-23 14:42:29 +01:00
viewsets.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00