From 4482be46ae8c9ed9864123903e114fcc833441ae Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 6 Nov 2014 11:10:36 +0000 Subject: More precise assertion error for bulk update --- rest_framework/serializers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index cbac3992..68f9e362 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -525,11 +525,11 @@ class ListSerializer(BaseSerializer): def save(self, **kwargs): assert self.instance is None, ( - "Serializers do not support multiple update by default, because " - "it would be unclear how to deal with insertions, updates and " - "deletions. If you need to support multiple update, use a " - "`ListSerializer` class and override `.save()` so you can specify " - "the behavior exactly." + "Serializers do not support multiple update by default, only " + "multiple create. For updates it is unclear how to deal with " + "insertions and deletions. If you need to support multiple update, " + "use a `ListSerializer` class and override `.save()` so you can " + "specify the behavior exactly." ) validated_data = [ -- cgit v1.2.3