(self)
return self._case
For a 'forward' index this is the case that the the index points to.
        For a 'reverse' index this is the case that owns the index.
        See ``corehq/couchapps/case_indices/views/related/map.js``

        :return: referenced case
For a 'forward' index this is the case that the the index points to.
        For a 'reverse' index this is the case that owns the index.
        See ``corehq/couchapps/case_indices/views/related/map.js``
For a forward index this is the case that the the index points to . For a reverse index this is the case that owns the index . See corehq / couchapps / case_indices / views / related / map . js
def referenced_case(self):
        """
        For a 'forward' index this is the case that the the index points to.
        For a 'reverse' index this is the case that owns the index.
        See ``corehq/couchapps/case_indices/views/related/map.js``

        :return: referenced case
        """
        if not hasattr(self, "_case"):
            from casexml.apps.case.models import CommCareCase
            if self.referenced_id:
                self._case = CommCareCase.get(self.referenced_id)
            else:
                self._case = None
        return self._case
def referenced_case ( self ) : if not hasattr ( self , "_case" ) : from casexml . apps . case . models import CommCareCase if self . referenced_id : self . _case = CommCareCase . get ( self . referenced_id ) else : self . _case = None return self . _case