diff options
| author | Tom Christie | 2014-12-17 16:23:42 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-12-17 16:23:42 +0000 |
| commit | 760da25c6018eff02b3aab33dc6fea7c93881d9f (patch) | |
| tree | cda0f7ea1821d3054be7f9e9251e37b4c06281b7 /api-guide/pagination/index.html | |
| parent | c05c1f5c7cf562634382c25716d7a7588794f107 (diff) | |
| download | django-rest-framework-760da25c6018eff02b3aab33dc6fea7c93881d9f.tar.bz2 | |
Update documentation
Diffstat (limited to 'api-guide/pagination/index.html')
| -rw-r--r-- | api-guide/pagination/index.html | 2 |
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> |
