(self)
Get supply point location or `None` if it does not exist.
Get supply point location or `None` if it does not exist.
Get supply point location or None if it does not exist .
def location(self):
        """Get supply point location or `None` if it does not exist."""
        from corehq.apps.locations.models import SQLLocation
        if self.location_id is None:
            return None
        try:
            return self.sql_location
        except SQLLocation.DoesNotExist:
            return None
def location ( self ) : from corehq . apps . locations . models import SQLLocation if self . location_id is None : return None try : return self . sql_location except SQLLocation . DoesNotExist : return None