def get(self,idc): g =int(idc) y=ListYou.get_by_id(g) yy=y.idc t=ListYouTwo.all().filter('lidc =', yy) db.delete(y) db.delete(t) self.redirect(self.request.referer)