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

Support .update(flags=FLAG & FLAG) #1

Open
dcramer opened this issue Dec 28, 2010 · 1 comment
Open

Support .update(flags=FLAG & FLAG) #1

dcramer opened this issue Dec 28, 2010 · 1 comment

Comments

@dcramer
Copy link
Collaborator

dcramer commented Dec 28, 2010

Via Alex Gaynor:

MyModel.objects.filter(pk=o.pk).update(flags=MyModel.flags.awesome_flag & MyModel.flags.other_flag)

@flyingeek
Copy link
Contributor

is this still valid ? syntax should be (flag|flag) not (flag&flag) to make sense.

strycore referenced this issue in lutris/django-bitfield Aug 16, 2016
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

2 participants