diff --git a/bitfield/admin.py b/bitfield/admin.py index 30f0cf0e..d1766d2e 100644 --- a/bitfield/admin.py +++ b/bitfield/admin.py @@ -23,7 +23,7 @@ def __init__(self, field, request, params, model, model_admin, field_path): def queryset(self, request, queryset): filter_kwargs = dict( - (p, BitHandler(v, ())) + (p, BitHandler(v, getattr(queryset.model, p))) for p, v in six.iteritems(self.used_parameters) ) if not filter_kwargs: