示例#1
0
def answered(request):
    questions = Question.get_answered()
    return _questions(request, questions, 'answered')
示例#2
0
文件: views.py 项目: lotux/bootcamp
def answered(request):
    questions = Question.get_answered()
    return _questions(request, questions, 'answered')
示例#3
0
 def test_question_answered_question(self):
     self.assertEqual(self.question_two, Question.get_answered()[0])
示例#4
0
def answered(request):
    questions = Question.get_answered()
    return render(request, 'questions/questions.html', {
        'questions': questions,
        'active': 'answered'
    })
示例#5
0
文件: views.py 项目: lucasmg/bootcamp
def answered(request):
    questions = Question.get_answered()
    return render(request, 'questions/questions.html', {'questions': questions, 'active': 'answered'})
示例#6
0
文件: views.py 项目: Yihen/ibootcamp
def answered(request):
    tag = request.session.get('TRIBE_TAG')
    questions = Question.get_answered(tag)
    return _questions(request, questions, 'answered')
示例#7
0
def answered(request):
    questions = Question.get_answered()
    return render(request, "questions/questions.html", {"questions": questions, "active": "answered"})
示例#8
0
 def test_question_answered_question(self):
     self.assertEqual(self.question_two, Question.get_answered()[0])