Hello, > How do I quickly test if there are results in the resultset? You can use bool(result.count()) or bool(result.any()). -- Gustavo Niemeyer http://niemeyer.net