`return QtSql.QSqlQuery('''SELECT * FROM presentations''')` unless you expect to use `result` in between it's assignment and return.