diff options
| author | jedavis83@gmail.com | 2012-11-22 10:50:29 -0800 |
|---|---|---|
| committer | jedavis83@gmail.com | 2012-11-22 10:50:29 -0800 |
| commit | e9944f82d1efd7c6bf89ca02fb9e41b9b8973129 (patch) | |
| tree | 0d0661abec4801eda1e14a00dec54458fa1f987a /rest_framework/pagination.py | |
| parent | e03bb9c2fe53591c40707569d091b8793ea1000e (diff) | |
| download | django-rest-framework-e9944f82d1efd7c6bf89ca02fb9e41b9b8973129.tar.bz2 | |
Keep Serializer.fields API consistent while caching values.
Diffstat (limited to 'rest_framework/pagination.py')
| -rw-r--r-- | rest_framework/pagination.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py index fdffec35..d241ade7 100644 --- a/rest_framework/pagination.py +++ b/rest_framework/pagination.py @@ -62,7 +62,7 @@ class BasePaginationSerializer(serializers.Serializer): super(BasePaginationSerializer, self).__init__(*args, **kwargs) results_field = self.results_field object_serializer = self.opts.object_serializer_class - self.serialize_fields[results_field] = object_serializer(source='object_list') + self.fields[results_field] = object_serializer(source='object_list') def to_native(self, obj): """ |
