Commit 0a57cf98 by Alen Mujezinovic

Added a .parent attribute to the Serializer object for documentation

purposes
parent 54a19105
...@@ -96,6 +96,11 @@ class Serializer(object): ...@@ -96,6 +96,11 @@ class Serializer(object):
""" """
The maximum depth to serialize to, or `None`. 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): def __init__(self, depth=None, stack=[], **kwargs):
if depth is not None: if depth is not None:
......
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