mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Paginated serializers should get context.
This commit is contained in:
parent
9f9b9f8944
commit
c2e00a075c
|
@ -77,6 +77,7 @@ class BasePaginationSerializer(serializers.Serializer):
|
||||||
child=object_serializer(),
|
child=object_serializer(),
|
||||||
source='object_list'
|
source='object_list'
|
||||||
)
|
)
|
||||||
|
self.fields[results_field].bind(field_name=results_field, parent=self)
|
||||||
|
|
||||||
|
|
||||||
class PaginationSerializer(BasePaginationSerializer):
|
class PaginationSerializer(BasePaginationSerializer):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user