You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generic_chooser\views.py", line 269, in get_paginated_object_list
paginator = APIPaginator(result['meta']['total_count'], self.per_page)
KeyError: 'meta'
meta isn't a standard key in any of the base DRF responses. If this is meant to be the total count of objects in a paginated response it should use the count key, not [meta][total_count]
It looks like the get_paginated_object list for DRFChooserMixin should be updated to include the proper params for PageNumberPagination as well as LimitOffsetPagination. The records in the response are normally in the 'results' property not 'items'. Here is what worked for me.
meta
isn't a standard key in any of the base DRF responses. If this is meant to be the total count of objects in a paginated response it should use thecount
key, not[meta][total_count]
see: https://www.django-rest-framework.org/api-guide/pagination/
The text was updated successfully, but these errors were encountered: