Commit a16a8a10 by Tom Christie

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

parent e3991400
......@@ -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):
"""
......
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