'Data entity lookup.'

def get(self, *args, **kwargs):

    items = list(kwargs)
    inst = None
    if (len(items) == 1):
        key = items[0]
        if key.endswith('__exact'):
            key = key[:(- len('__exact'))]
        if (key in ('pk', self.model._meta.pk.attname)):
            inst = self.model.get_cached_instance(kwargs[items[0]])
            try:
                if (getattr(inst, str(self.field).split('.')[(-1)]) != self.instance):
                    inst = None
            except Exception:
                pass
    if (inst is None):
        inst = super(SharedMemoryManager, self).get(*args, **kwargs)
    return inst
