Paginated serializers should get context.

This commit is contained in:
Tom Christie 2014-12-26 15:25:13 +00:00
parent 9f9b9f8944
commit c2e00a075c

View File

@ -77,6 +77,7 @@ class BasePaginationSerializer(serializers.Serializer):
child=object_serializer(),
source='object_list'
)
self.fields[results_field].bind(field_name=results_field, parent=self)
class PaginationSerializer(BasePaginationSerializer):