'Filter the queryset to all instances matching the given attribute.'

def filter_queryset(self, value, queryset):

    filter_kwargs = {(u'%s__%s' % (self.field_name, self.lookup)): value}
    return qs_filter(queryset, **filter_kwargs)
