'Given a database cursor, return a
:py:class:`~gratipay.models.team.Team` if there is one linked to this
package, or ``None`` if not.'

def load_team(self, cursor):

    return cursor.one(u'SELECT    t.*::teams    FROM    teams    t    WHERE    t.id=(SELECT    team_id    FROM    teams_to_packages    tp    WHERE    tp.package_id=%s)', (self.id,))
