def get_by_natural_key(self, hashval=None, **kwargs):
        qs = self.filter_by_natural_key(hashval, **kwargs)
        real_hashval = qs._hashval
        try:
            return qs.get()
        except MultipleObjectsReturned, error:
            raise MultipleObjectsReturned('Duplicate natural keys found! Lookup parameters were %s. Natural key hash is: %s' % (hashval or kwargs, real_hashval))
        except __HOLE__, error:
            raise ObjectDoesNotExist('Natural key not found! Lookup paramets were %s. Natural key hash is: %s' % (hashval or kwargs, real_hashval))
dataset/ETHPy150Open zbyte64/django-dockit/dockit/schema/manager.py/Manager.get_by_natural_key