Commit 272a6abf by Philip Douglas

Try a more localised fix to the data=None problem

parent 6e4bdb55
......@@ -306,6 +306,7 @@ class WritableField(Field):
return
try:
data = data or {}
if self.use_files:
files = files or {}
try:
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment