def get(self): qId = int(self.request.get('id')) responseSet = ResponseSet.get_by_id(qId) responses = Response.all() responses.filter('responseSet =', responseSet) values = {'responseSet': responseSet, 'responses': responses} self.response.out.write(template.render('templates/responseSet.html', values))
def get(self): qId = int(self.request.get('id')) question = Question.get_by_id(qId) responses = Response.all() responses.filter("question =", question) values = {'responses': responses, 'question': question} self.response.out.write(template.render('templates/responses.html', values))
def get(self): id = int(self.request.get('id')) responseSet = ResponseSet.get_by_id(id) #First, need to delete all the responses that are associated with the response set that I'm deleting responses = Response.all() responses.filter('responseSet =', responseSet) for response in responses: response.delete() responseSet.delete() self.redirect('/qadmin')