.copy() for serializer .data and .errors dictionaries

This commit is contained in:
Tom Christie 2014-11-07 11:16:26 +00:00
parent e399140031
commit a16a8a10a9

View File

@ -11,6 +11,9 @@ class ReturnDict(OrderedDict):
self.serializer = kwargs.pop('serializer')
super(ReturnDict, self).__init__(*args, **kwargs)
def copy(self):
return ReturnDict(self, serializer=self.serializer)
class ReturnList(list):
"""