Skip to content

Access a field in queryset values #86

Description

@vaibhavkhulbe

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions