aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/pagination
diff options
context:
space:
mode:
authorTom Christie2014-12-17 16:23:42 +0000
committerTom Christie2014-12-17 16:23:42 +0000
commit760da25c6018eff02b3aab33dc6fea7c93881d9f (patch)
treecda0f7ea1821d3054be7f9e9251e37b4c06281b7 /api-guide/pagination
parentc05c1f5c7cf562634382c25716d7a7588794f107 (diff)
downloaddjango-rest-framework-760da25c6018eff02b3aab33dc6fea7c93881d9f.tar.bz2
Update documentation
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>