def apply_filter(self, queryset, data):
    filterspec = {self.filter_field: data}
    return queryset.filter(**filterspec)
def apply_filter(self, queryset, data):
    filterspec = {self.filter_field: data}
    return queryset.filter(**filterspec)