aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/pagination.py
diff options
context:
space:
mode:
authorSzymon Teżewski2012-12-13 12:07:56 +0100
committerSzymon Teżewski2012-12-13 12:07:56 +0100
commit5f08ec70e24ee3bdf74eed62def2fd9108af0eb0 (patch)
tree7f9675b74de796c322ee3051029970a456e675a7 /rest_framework/pagination.py
parent497da7fc699b9e88c966e37bc48739865336683d (diff)
downloaddjango-rest-framework-5f08ec70e24ee3bdf74eed62def2fd9108af0eb0.tar.bz2
context to custom field in pagination
Diffstat (limited to 'rest_framework/pagination.py')
-rw-r--r--rest_framework/pagination.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py
index d241ade7..7d7bb647 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.fields[results_field] = object_serializer(source='object_list', **kwargs)
def to_native(self, obj):
"""