def METHOD_NAME(queryset, name, value):
    if value == StatusChoices.concept:
        return queryset.filter(**{name: True})
    elif value == StatusChoices.definitief:
        return queryset.filter(**{name: False})
    elif value == StatusChoices.alles:
        return queryset