value = df.CharFilter(method='filter_value')


class Meta:
    model = Article

def filter_type(self, queryset, name, value):
    return queryset.filter(**{'attributes__type': value})

def filter_value(self, queryset, name, value):
    return queryset.filter(**{'attributes__value': value})
Django filter on values of child objects