(self, request, queryset)
Return the filtered queryset based on the value provided in the query string.

        source:
        https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter
Return the filtered queryset based on the value provided in the query string.
Return the filtered queryset based on the value provided in the query string .
def queryset(self, request, queryset):
        """
        Return the filtered queryset based on the value provided in the query string.

        source:
        https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter
        """
        filter_args = {self._filter_arg_key: None}

        if self.value() == "yes":
            return queryset.exclude(**filter_args)
        if self.value() == "no":
            return queryset.filter(**filter_args)
def queryset ( self , request , queryset ) : filter_args = { self . _filter_arg_key : None } if self . value ( ) == "yes" : return queryset . exclude ( * * filter_args ) if self . value ( ) == "no" : return queryset . filter ( * * filter_args )