diff options
| author | jedavis83@gmail.com | 2012-11-20 23:17:30 -0800 |
|---|---|---|
| committer | jedavis83@gmail.com | 2012-11-20 23:17:30 -0800 |
| commit | e03bb9c2fe53591c40707569d091b8793ea1000e (patch) | |
| tree | 5ab4f0dd7e7c6610d99f8d3d9bc18a452c579cf2 | |
| parent | 8b0561c57e4684ac440d36b39069a6c7f6168a02 (diff) | |
| download | django-rest-framework-e03bb9c2fe53591c40707569d091b8793ea1000e.tar.bz2 | |
Change pagination to update Serializer.serialize_fields
| -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 d241ade7..fdffec35 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.fields[results_field] = object_serializer(source='object_list') + self.serialize_fields[results_field] = object_serializer(source='object_list') def to_native(self, obj): """ |
