diff options
| author | Tom Christie | 2014-11-06 11:10:36 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-11-06 11:10:36 +0000 | 
| commit | 4482be46ae8c9ed9864123903e114fcc833441ae (patch) | |
| tree | c951a0af0a68093cc8367b89ca5203fe484cf8b7 | |
| parent | ed541864e637681e1aca3a808be1f26202b4c271 (diff) | |
| download | django-rest-framework-4482be46ae8c9ed9864123903e114fcc833441ae.tar.bz2 | |
More precise assertion error for bulk update
| -rw-r--r-- | rest_framework/serializers.py | 10 | 
1 files 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 = [ | 
