django-cursor-pagination
django-cursor-pagination copied to clipboard
add support for .values() querysets
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?