From: yomguy Date: Thu, 29 Nov 2012 08:17:53 +0000 (+0100) Subject: update for doc model X-Git-Tag: 0.9-probarreau~276 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9916d6815418a0eaf5f1428c2a02b6ab03606c01;p=teleforma.git update for doc model --- diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index 8d417a89..d0266009 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -18,7 +18,7 @@
{% trans "Read the following documents" %}
- {% with seminar.doc_1 as docs %} + {% with seminar.docs_1 as docs %} {% include "teleforma/inc/document_simple_list.html" %} {% endwith %} @@ -33,7 +33,7 @@
{% trans "Read the following documents" %}
- {% with seminar.doc_2 as docs %} + {% with seminar.docs_2 as docs %} {% include "teleforma/inc/document_simple_list.html" %} {% endwith %} @@ -48,7 +48,7 @@
{% trans "Read the following documents" %}
- {% with seminar.doc_correct as docs %} + {% with seminar.docs_correct as docs %} {% include "teleforma/inc/document_simple_list.html" %} {% endwith %} {% endif %} diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 1d31f9b1..f0594801 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -68,7 +68,7 @@ def seminar_progress(user, seminar): progress = 0 total = 0 - objects = [seminar.doc_1, seminar.doc_2, seminar.media, seminar.doc_correct] + objects = [seminar.docs_1, seminar.docs_2, seminar.media, seminar.docs_correct] for obj in objects: for item in obj.all(): total += item.weight