mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-26 08:20:46 +03:00
Fixed commit errors
Signed-off-by: Jens Alm <jens.alm@mac.com>
This commit is contained in:
parent
e7f2242cfd
commit
dec5ac8887
|
@ -202,11 +202,7 @@ class Serializer(object):
|
||||||
return related_serializer(depth=depth, stack=stack).serialize(obj, request)
|
return related_serializer(depth=depth, stack=stack).serialize(obj, request)
|
||||||
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
def serialize_max_depth(self, obj, request=None):
|
def serialize_max_depth(self, obj, request=None):
|
||||||
=======
|
|
||||||
def serialize_max_depth(self, obj, request):
|
|
||||||
>>>>>>> c59a37b0a6149f0d7c86000e1559c3a3d7a10873
|
|
||||||
"""
|
"""
|
||||||
Determine how objects should be serialized once `depth` is exceeded.
|
Determine how objects should be serialized once `depth` is exceeded.
|
||||||
The default behavior is to ignore the field.
|
The default behavior is to ignore the field.
|
||||||
|
@ -214,11 +210,7 @@ class Serializer(object):
|
||||||
raise _SkipField
|
raise _SkipField
|
||||||
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
def serialize_recursion(self, obj, request=None):
|
def serialize_recursion(self, obj, request=None):
|
||||||
=======
|
|
||||||
def serialize_recursion(self, obj, request):
|
|
||||||
>>>>>>> c59a37b0a6149f0d7c86000e1559c3a3d7a10873
|
|
||||||
"""
|
"""
|
||||||
Determine how objects should be serialized if recursion occurs.
|
Determine how objects should be serialized if recursion occurs.
|
||||||
The default behavior is to ignore the field.
|
The default behavior is to ignore the field.
|
||||||
|
@ -226,11 +218,7 @@ class Serializer(object):
|
||||||
raise _SkipField
|
raise _SkipField
|
||||||
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
def serialize_model(self, instance, request=None):
|
def serialize_model(self, instance, request=None):
|
||||||
=======
|
|
||||||
def serialize_model(self, instance, request):
|
|
||||||
>>>>>>> c59a37b0a6149f0d7c86000e1559c3a3d7a10873
|
|
||||||
"""
|
"""
|
||||||
Given a model instance or dict, serialize it to a dict..
|
Given a model instance or dict, serialize it to a dict..
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user