aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/pagination
diff options
context:
space:
mode:
Diffstat (limited to 'api-guide/pagination')
-rw-r--r--api-guide/pagination/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/pagination/index.html b/api-guide/pagination/index.html
index 3d861358..870035c2 100644
--- a/api-guide/pagination/index.html
+++ b/api-guide/pagination/index.html
@@ -513,7 +513,7 @@ class LinksSerializer(serializers.Serializer):
class CustomPaginationSerializer(pagination.BasePaginationSerializer):
links = LinksSerializer(source='*') # Takes the page object as the source
- total_results = serializers.Field(source='paginator.count')
+ total_results = serializers.ReadOnlyField(source='paginator.count')
results_field = 'objects'
</code></pre>