@property
    def default_connection(self):
        """
        Return the default connection for this person.  Currently this
        arbitrarily returns the first connection.
        """
        # TODO: this is defined totally arbitrarily for a future
        # sane implementation
        if self.connection_set.count() > 0:
            return self.connection_set.all()[0]
        return None
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/models.py/ContactBase.default_connection/original