From d845e47c60539b90862da127a14b9ef405747f0c Mon Sep 17 00:00:00 2001 From: yomguy Date: Mon, 11 Jun 2012 16:35:26 +0200 Subject: [PATCH] fix multiple docs --- teleforma/templates/teleforma/inc/document_list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/templates/teleforma/inc/document_list.html b/teleforma/templates/teleforma/inc/document_list.html index b37e1f7d..04de9caa 100644 --- a/teleforma/templates/teleforma/inc/document_list.html +++ b/teleforma/templates/teleforma/inc/document_list.html @@ -8,7 +8,7 @@ {% for doc_type in doc_types %} -{% if course.document.all|from_doc_type:doc_type %} +{% if course.document.all|from_course_type:type|from_doc_type:doc_type %} {{ doc_type }} @@ -20,7 +20,7 @@ - {% for document in course.document.all|from_course_type:type %} + {% for document in course.document.all|from_course_type:type|from_doc_type:doc_type %}
{% if document.file %}{% endif %}{{ document.title }}{% if document.file %}{% endif %} -- 2.39.5