def queryset(self, request, queryset):
    state = self.value()
    if self.default_filter_value:
        if (not state):
            return queryset.filter(version__state=self.default_filter_value)
        elif (state != '_all_'):
            return queryset.filter(version__state__in=state.split(','))
    elif ((not self.default_filter_value) and state):
        return queryset.filter(version__state__in=state.split(','))
    return queryset
def queryset(self, request, queryset):
    state = self.value()
    if self.default_filter_value:
        if (not state):
            return queryset.filter(version__state=self.default_filter_value)
        elif (state != '_all_'):
            return queryset.filter(version__state__in=state.split(','))
    elif ((not self.default_filter_value) and state):
        return queryset.filter(version__state__in=state.split(','))
    return queryset