def get(self): del_opins = Opinion.query(Opinion.deleted == True).fetch() params = {"del_opins": del_opins} return self.render_template("deleted-opinions.html", params)
def get(self): opinions = Opinion.query(Opinion.deleted == False).fetch() params = {"opinions": opinions} return self.render_template("opinions.html", params)
def get(self): if not users.is_current_user_admin(): return self.write("You are not admin!") del_opins = Opinion.query(Opinion.deleted == True).fetch() params = {"del_opins": del_opins} return self.render_template("deleted-opinions.html", params)