def get(self, aid): Ad.delete().where(Ad.id == aid).execute() self.flash(u"广告删除成功") self.redirect("/admin/ads")