Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
fixed a bug in the lesson_detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajit Sarkar committed May 3, 2012
1 parent 5d3cc52 commit 55e74ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curricula/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'minor': 2,
'micro': 0,
'releaselevel': 'beta',
'serial': 12
'serial': 13
}

def get_version():
Expand Down
2 changes: 1 addition & 1 deletion curricula/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def lesson_detail(request, slug, preview=False, template_name='curricula/lesson_
activities = lesson.get_activities({'activity__published': True})
#
credit_details = {}
for detail in activity.credit.credit_details.all():
for detail in lesson.credit.credit_details.all():
if detail.credit_category not in credit_details:
credit_details[detail.credit_category] = []
credit_details[detail.credit_category].append(detail.entity)
Expand Down

0 comments on commit 55e74ae

Please sign in to comment.