Skip to content

Commit

Permalink
.copy() for serializer .data and .errors dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Nov 7, 2014
1 parent e399140 commit a16a8a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rest_framework/utils/serializer_helpers.py
Expand Up @@ -11,6 +11,9 @@ def __init__(self, *args, **kwargs):
self.serializer = kwargs.pop('serializer')
super(ReturnDict, self).__init__(*args, **kwargs)

def copy(self):
return ReturnDict(self, serializer=self.serializer)


class ReturnList(list):
"""
Expand Down

0 comments on commit a16a8a1

Please sign in to comment.