Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed a bug in the lesson_detail view

  • Loading branch information...
commit 55e74aea026ebef4841e9b2774d570b53767eeaa 1 parent 5d3cc52
Rajit Sarkar authored May 03, 2012
2  curricula/__init__.py
@@ -6,7 +6,7 @@
6 6
     'minor': 2,
7 7
     'micro': 0,
8 8
     'releaselevel': 'beta',
9  
-    'serial': 12
  9
+    'serial': 13
10 10
 }
11 11
 
12 12
 def get_version():
2  curricula/views.py
@@ -62,7 +62,7 @@ def lesson_detail(request, slug, preview=False, template_name='curricula/lesson_
62 62
             activities = lesson.get_activities({'activity__published': True})
63 63
     #
64 64
     credit_details = {}
65  
-    for detail in activity.credit.credit_details.all():
  65
+    for detail in lesson.credit.credit_details.all():
66 66
         if detail.credit_category not in credit_details:
67 67
             credit_details[detail.credit_category] = []
68 68
         credit_details[detail.credit_category].append(detail.entity)

0 notes on commit 55e74ae

Please sign in to comment.
Something went wrong with that request. Please try again.