def post(self): content = self.request.post("content") key = self.request.post("key") if content and key: comment = Comment(content=content, timeslot=Timeslot.get(key)) comment.put() self.redirect(self.request.path)