'Constructor for ObjectPermissionChecker.
:param user_or_group: should be an ``User``, ``AnonymousUser`` or
``Group`` instance'

def __init__(self, user_or_group=None):

    (self.user, self.group) = get_identity(user_or_group)
    self._obj_perms_cache = {}
