def action_new(self): l = MyList() l.name="list %s" % random.randint(0,22000) l.put() for x in (0,2,4,8,6,10): n1 = MyName() n1.short_desc = "short desc %s %s" % (x,random.randint(0,100)) n1.listed_in_list = l n1.put() self.redirect("/exper_reference") # default redirect, if it not happened already