Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for .values() querysets #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

H4dr1en
Copy link

@H4dr1en H4dr1en commented Jun 24, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant