mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +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(),
|
||||
source='object_list'
|
||||
)
|
||||
self.fields[results_field].bind(field_name=results_field, parent=self)
|
||||
|
||||
|
||||
class PaginationSerializer(BasePaginationSerializer):
|
||||
|
|
Loading…
Reference in New Issue
Block a user