django-bitfield icon indicating copy to clipboard operation
django-bitfield copied to clipboard

admin BitFieldListFilter not working as expected

Open bendavis78 opened this issue 13 years ago • 1 comments

BitFieldListFilter seems to filter based on "exact", as opposed to a bitwise operation. So when you select the third item (mask=4), you essentially get this:

queryset.filter(flags=4)

Which will not return the desired result. The queryset() method should be overridden in order to perform the correct bitwise operation when filtering.

bendavis78 avatar Nov 16 '12 05:11 bendavis78

@ortholeviator What should be the status of this issue following #106?

mateuszmandera avatar Apr 11 '20 10:04 mateuszmandera