diff options
| author | Tom Christie | 2014-12-13 19:54:19 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-12-13 19:54:19 +0000 |
| commit | a72f812d80a4000e86a5ad96001f3fbf43fe310a (patch) | |
| tree | 087e75859c1a9551d07761c572e92b6c6aab8a04 | |
| parent | dd712a1c2620b5dc9ad8eef5ff78ef232feb12e8 (diff) | |
| parent | 2d470eef809b119c8c72009c81d652ddbf895e0b (diff) | |
| download | django-rest-framework-a72f812d80a4000e86a5ad96001f3fbf43fe310a.tar.bz2 | |
Merge pull request #2269 from bjacobel/bjacobel/documentation-pagination-readonlyfield
Change serializers.Field to serializers.ReadOnlyField for 3.x compatibility
| -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' |
