You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: