mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-28 12:34:00 +03:00
Merge branch 'master' of github.com:ulmus/django-rest-framework
Conflicts: djangorestframework/serializer.py Signed-off-by: Jens Alm <jens.alm@mac.com>
This commit is contained in:
commit
e7f2242cfd
|
@ -202,7 +202,11 @@ class Serializer(object):
|
|||
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):
|
||||
>>>>>>> c59a37b0a6149f0d7c86000e1559c3a3d7a10873
|
||||
"""
|
||||
Determine how objects should be serialized once `depth` is exceeded.
|
||||
The default behavior is to ignore the field.
|
||||
|
@ -210,7 +214,11 @@ class Serializer(object):
|
|||
raise _SkipField
|
||||
|
||||
|
||||
<<<<<<< HEAD
|
||||
def serialize_recursion(self, obj, request=None):
|
||||
=======
|
||||
def serialize_recursion(self, obj, request):
|
||||
>>>>>>> c59a37b0a6149f0d7c86000e1559c3a3d7a10873
|
||||
"""
|
||||
Determine how objects should be serialized if recursion occurs.
|
||||
The default behavior is to ignore the field.
|
||||
|
@ -218,7 +226,11 @@ class Serializer(object):
|
|||
raise _SkipField
|
||||
|
||||
|
||||
<<<<<<< HEAD
|
||||
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..
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user