aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/serializer.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/djangorestframework/serializer.py b/djangorestframework/serializer.py
index e2d860a2..f30667f1 100644
--- a/djangorestframework/serializer.py
+++ b/djangorestframework/serializer.py
@@ -96,6 +96,11 @@ class Serializer(object):
"""
The maximum depth to serialize to, or `None`.
"""
+
+ parent = None
+ """
+ A reference to the root serializer when descending down into fields.
+ """
def __init__(self, depth=None, stack=[], **kwargs):
if depth is not None: