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
Return 'class="selected"' if a == b, otherwise return ''.
dataset/ETHPy150Open dropbox/nsot/nsot/api/filters.py/NetworkFilter.filter_include_ips--crossover with--dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/templatetags/jinja_helpers.py/class_selected