django-cursor-pagination icon indicating copy to clipboard operation
django-cursor-pagination copied to clipboard

add support for .values() querysets

Open H4dr1en opened this issue 4 years ago • 0 comments

This PR aims to add support for querysets created with .values(...).

In such case, position_from_instance(self, instance) recieve a dict instead of a ORM object, therefore failing at line 131 with AttributeError, since it tries to access the value using getattr instead of get

I extended the tests for that use-case, but I am not sure how to start them?

H4dr1en avatar Jun 24 '20 06:06 H4dr1en