Esempio n. 1
0
def answered(request):
    questions = Question.get_answered()
    return _questions(request, questions, 'answered')
Esempio n. 2
0
def answered(request):
    questions = Question.get_answered()
    return _questions(request, questions, 'answered')
Esempio n. 3
0
 def test_question_answered_question(self):
     self.assertEqual(self.question_two, Question.get_answered()[0])
Esempio n. 4
0
def answered(request):
    questions = Question.get_answered()
    return render(request, 'questions/questions.html', {
        'questions': questions,
        'active': 'answered'
    })
Esempio n. 5
0
def answered(request):
    questions = Question.get_answered()
    return render(request, 'questions/questions.html', {'questions': questions, 'active': 'answered'})
Esempio n. 6
0
def answered(request):
    tag = request.session.get('TRIBE_TAG')
    questions = Question.get_answered(tag)
    return _questions(request, questions, 'answered')
Esempio n. 7
0
def answered(request):
    questions = Question.get_answered()
    return render(request, "questions/questions.html", {"questions": questions, "active": "answered"})
Esempio n. 8
0
 def test_question_answered_question(self):
     self.assertEqual(self.question_two, Question.get_answered()[0])