diff -r 10942ed172de -r 54b8a1f249fb web/views/actions.py --- a/web/views/actions.py Tue Sep 15 16:15:03 2015 +0200 +++ b/web/views/actions.py Tue Oct 13 15:09:22 2015 +0200 @@ -76,7 +76,7 @@ return 0 select = rqlst.children[0] if len(select.defined_vars) == 1 and len(select.solutions) == 1: - rset._searched_etype = select.solutions[0].itervalues().next() + rset._searched_etype = next(iter(select.solutions[0].values())) eschema = req.vreg.schema.eschema(rset._searched_etype) if not (eschema.final or eschema.is_subobject(strict=True)) \ and eschema.has_perm(req, 'add'):