We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d52605 commit 9bf415dCopy full SHA for 9bf415d
rest_framework_ember/pagination.py
@@ -69,13 +69,13 @@ class EmberPaginationSerializer(pagination.BasePaginationSerializer):
69
def __init__(self, *args, **kwargs):
70
super(pagination.BasePaginationSerializer, self).__init__(
71
*args, **kwargs)
72
-
73
- # get the dynamic root key
74
- results_field = get_resource_name(
75
- kwargs.get('context').get('view'))
+ results_field = self.results_field
76
object_serializer = self.opts.object_serializer_class
77
78
if 'context' in kwargs:
+ # get the dynamic root key
+ results_field = get_resource_name(
+ kwargs.get('context').get('view'))
79
context_kwarg = {'context': kwargs['context']}
80
else:
81
context_kwarg = {}
0 commit comments