I have a model with BitField like this:
class MyModel(models.Model):
notifications = BitField(flags=('facebook', 'email'))
I would like to filter my model just retrieving the values, but the BitField is unable to return the flag values independently. I have unsuccessfully tried:
MyModel.objects.all().values_list(
'id', 'notifications__facebook', 'notification__email'
)
Is there a way to make it work?