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?
This PR aims to add support for querysets created with
.values(...)
.In such case,
position_from_instance(self, instance)
recieve adict
instead of a ORM object, therefore failing at line 131 with AttributeError, since it tries to access the value usinggetattr
instead ofget
I extended the tests for that use-case, but I am not sure how to start them?