server/test/data/schema.py
changeset 10669 155c29e0ed1c
parent 10646 45671fb330f5
child 10817 7b154e0fa194
--- a/server/test/data/schema.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/server/test/data/schema.py	Fri Sep 18 14:29:53 2015 +0200
@@ -85,7 +85,7 @@
     object = 'SubDivision'
 
 from cubicweb.schemas.base import CWUser
-CWUser.get_relations('login').next().fulltextindexed = True
+next(CWUser.get_relations('login')).fulltextindexed = True
 
 class Note(WorkflowableEntityType):
     date = String(maxsize=10)