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

Access a field in queryset values #86

Open
vaibhavkhulbe opened this issue Jan 2, 2019 · 0 comments
Open

Access a field in queryset values #86

vaibhavkhulbe opened this issue Jan 2, 2019 · 0 comments

Comments

@vaibhavkhulbe
Copy link

Hi,

Let's say I have a field
flags = Bitfield(flags=( 'a', 'b'))
now i want to use this value from a queryset

is there a way to get the value in the queryset by doing something like this
m=model.objects.values('flags__a__is_set')
so that i get a value if the bitfield is set or not
because I found no way to do this anywhere so I want to know if this is supported or not?

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

No branches or pull requests

1 participant