def METHOD_NAME(self, queryset, name, value):
    if value == "concept":
        return queryset.filter(
            models.Q(zaaktype__concept=True)
            | models.Q(informatieobjecttype__concept=True)
        )
    elif value == "definitief":
        return queryset.filter(
            zaaktype__concept=False, informatieobjecttype__concept=False
        )
    elif value == "alles":
        return queryset