aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
diff options
context:
space:
mode:
authorPhilip Douglas2013-09-13 10:46:24 +0100
committerPhilip Douglas2013-09-13 10:46:24 +0100
commit272a6abf91c51b44781d27af5352c7e36c8fa91c (patch)
treecf092dd500dc9c888fe3a42a743498fd610fa339 /rest_framework/serializers.py
parent6e4bdb55969171c87296aba9711dbc77f8a1e366 (diff)
downloaddjango-rest-framework-272a6abf91c51b44781d27af5352c7e36c8fa91c.tar.bz2
Try a more localised fix to the data=None problem
Diffstat (limited to 'rest_framework/serializers.py')
-rw-r--r--rest_framework/serializers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 778e72d1..a63c7f6c 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -156,7 +156,7 @@ class BaseSerializer(WritableField):
self.context = context or {}
- self.init_data = data or {}
+ self.init_data = data
self.init_files = files
self.object = instance
self.fields = self.get_fields()