Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set the depth of serializers.

  • Loading branch information...
commit 55a0079d28417689a8e164b36ab78800f2c49954 1 parent 9509e08
@markotibold markotibold authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  fiber/rest_api/serializers.py
View
3  fiber/rest_api/serializers.py
@@ -11,6 +11,7 @@
class PageSerializer(serializers.ModelSerializer):
move_url = serializers.HyperlinkedIdentityField(view_name='page-move')
page_url = serializers.Field(source='get_absolute_url')
+ depth = 1
class Meta:
model = Page
@@ -27,6 +28,7 @@ class MovePageSerializer(serializers.Serializer):
class PageContentItemSerializer(serializers.ModelSerializer):
move_url = serializers.HyperlinkedIdentityField(view_name='pagecontentitem-move')
+ depth = 1
class Meta:
model = PageContentItem
@@ -38,6 +40,7 @@ class MovePageContentItemSerializer(serializers.Serializer):
class ContentItemSerializer(serializers.ModelSerializer):
+ depth = 1
class Meta:
model = ContentItem
Please sign in to comment.
Something went wrong with that request. Please try again.