def answered(request): questions = Question.get_answered() return _questions(request, questions, 'answered')
def test_question_answered_question(self): self.assertEqual(self.question_two, Question.get_answered()[0])
def answered(request): questions = Question.get_answered() return render(request, 'questions/questions.html', { 'questions': questions, 'active': 'answered' })
def answered(request): questions = Question.get_answered() return render(request, 'questions/questions.html', {'questions': questions, 'active': 'answered'})
def answered(request): tag = request.session.get('TRIBE_TAG') questions = Question.get_answered(tag) return _questions(request, questions, 'answered')
def answered(request): questions = Question.get_answered() return render(request, "questions/questions.html", {"questions": questions, "active": "answered"})