def _filter_or_exclude(self, *args, **kwargs):
        clone = super(PartitionQuerySet, self)._filter_or_exclude(*args, **kwargs)
        if getattr(clone, '_exact_lookups', None) is None:
            clone._exact_lookups = {}
        clone._exact_lookups.update(dict([(k, v) for k, v in kwargs.items() if '__' not in k]))
        return clone
dataset/ETHPy150Open disqus/sharding-example/sqlshards/db/shards/manager.py/PartitionQuerySet._filter_or_exclude/original