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

def load_package(self, cursor):

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