diff options
| author | Tom Christie | 2014-12-15 09:18:11 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-12-15 09:18:11 +0000 |
| commit | 4778463e32550f3bf9aa350925b1260343bced99 (patch) | |
| tree | 5ea0a151d588d603e5d86b75c48692e35e6d5a02 /docs/api-guide/pagination.md | |
| parent | 26131a7aea39bb517393b3b6774372d6aebd6885 (diff) | |
| parent | a72f812d80a4000e86a5ad96001f3fbf43fe310a (diff) | |
| download | django-rest-framework-4778463e32550f3bf9aa350925b1260343bced99.tar.bz2 | |
Merge branch 'master' into version-3.1
Diffstat (limited to 'docs/api-guide/pagination.md')
| -rw-r--r-- | docs/api-guide/pagination.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md index 9b7086c5..83429292 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -128,7 +128,7 @@ For example, to nest a pair of links labelled 'prev' and 'next', and set the nam 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' |
