aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/serializer.py
diff options
context:
space:
mode:
authorCraig Blaszczyk2011-12-11 18:30:43 +0000
committerCraig Blaszczyk2011-12-11 18:30:43 +0000
commite84bf2140c33b45d1d9d8325eeaf62a97c46495e (patch)
treed95d6755f787c8ab3d8c555315d514c067121bf9 /djangorestframework/serializer.py
parent0632e946f977609ca6d6f4272f02c72dee1f49be (diff)
parent4f42303035c094a1d0c6128f0ccce1abfa6b72f4 (diff)
downloaddjango-rest-framework-e84bf2140c33b45d1d9d8325eeaf62a97c46495e.tar.bz2
fix merge
Diffstat (limited to 'djangorestframework/serializer.py')
-rw-r--r--djangorestframework/serializer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/serializer.py b/djangorestframework/serializer.py
index 22efa5ed..55b84df1 100644
--- a/djangorestframework/serializer.py
+++ b/djangorestframework/serializer.py
@@ -106,7 +106,8 @@ class Serializer(object):
def __init__(self, depth=None, stack=[], **kwargs):
- self.depth = depth or self.depth
+ if depth is not None:
+ self.depth = depth
self.stack = stack