From 9916d6815418a0eaf5f1428c2a02b6ab03606c01 Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 29 Nov 2012 09:17:53 +0100 Subject: [PATCH] update for doc model --- teleforma/templates/teleforma/seminar_detail.html | 6 +++--- teleforma/views/pro.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5