Skip to content

admin BitFieldListFilter not working as expected #26

@bendavis78

Description

@bendavis78

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.

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