fixed partial assigning

This commit is contained in:
Stephan Groß 2012-12-12 15:21:49 +01:00
parent ddcc5766e1
commit 7617b673e7

View File

@ -106,7 +106,7 @@ class BaseSerializer(Field):
self.opts = self._options_class(self.Meta)
self.parent = None
self.root = None
self.partial = partial or self.opts.partial
self.partial = partial if partial is not None else self.opts.partial
self.context = context or {}