def filter_include_ips(self, queryset, value):
        include_ips = qpbool(value)
        include_networks = qpbool(self.form.cleaned_data['include_networks'])

        if not all([include_networks, include_ips]):
            if include_ips:
                return queryset.filter(is_ip=True)
            else:
                return queryset.exclude(is_ip=True)

        return queryset
Converts ``include_ips`` to queryset filters.
dataset/ETHPy150Open dropbox/nsot/nsot/api/filters.py/NetworkFilter.filter_include_ips