]> git.parisson.com Git - teleforma.git/commitdiff
update for doc model
authoryomguy <yomguy@parisson.com>
Thu, 29 Nov 2012 08:17:53 +0000 (09:17 +0100)
committeryomguy <yomguy@parisson.com>
Thu, 29 Nov 2012 08:17:53 +0000 (09:17 +0100)
teleforma/templates/teleforma/seminar_detail.html
teleforma/views/pro.py

index 8d417a89ba3e32744ecbdaa7b4dabfa4c62603a5..d0266009e477b2b68c1e69a29a5bbdc719e2cbab 100644 (file)
@@ -18,7 +18,7 @@
         <div class="course_step">
           {% trans "Read the following documents" %}
         </div>
-          {% with seminar.doc_1 as docs %}
+          {% with seminar.docs_1 as docs %}
            {% include "teleforma/inc/document_simple_list.html" %}
           {% endwith %}
 
@@ -33,7 +33,7 @@
         <div class="course_step">
           {% trans "Read the following documents" %}
         </div>
-          {% with seminar.doc_2 as docs %}
+          {% with seminar.docs_2 as docs %}
            {% include "teleforma/inc/document_simple_list.html" %}
           {% endwith %}
           
@@ -48,7 +48,7 @@
          <div class="course_step">
           {% trans "Read the following documents" %}
          </div>
-          {% with seminar.doc_correct as docs %}
+          {% with seminar.docs_correct as docs %}
            {% include "teleforma/inc/document_simple_list.html" %}
           {% endwith %}
         {% endif %}
index 1d31f9b12222cc8dec16b71602c3bd9925fc61f8..f0594801cad2c1faa0550720e0f03796fb892565 100644 (file)
@@ -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