def render_question(self, request, question): pictures = question.quizquestionpicture_set.all() return format_html( u''' <strong>{}</strong> {} ''', quizbleach(question.question), self.render_pictures(pictures))
def render_answer(self, request, answer): pictures = answer.quizanswerpicture_set.all() return format_html( u''' {} {} ''', quizbleach(answer.answer), self.render_pictures(pictures), )