Permalink
Browse files

fixed transcript

  • Loading branch information...
1 parent ec1ad47 commit 0b83a56c14edc95503243cb015bcfc536912c772 @thedjpetersen committed Jun 15, 2011
Showing with 8 additions and 2 deletions.
  1. +2 −0 transcript/templates/transcript/report_card.html
  2. +6 −2 transcript/views.py
View
2 transcript/templates/transcript/report_card.html
@@ -4,5 +4,7 @@
<div class="span-24 last">
<h1>Report Card</h1>
<h2>Grade Distribution</h2>
+ {{ term_groups }}
+ {{ grade_distribution }}
</div>
{% endblock %}
View
8 transcript/views.py
@@ -7,8 +7,12 @@
def index(request):
regclass = request.session['regclass']
- transcript = regclass.transcript.sort_by_term()
+ transcript = regclass.transcript.grades
return render_to_response('transcript/index.html', {'transcript':transcript, 'credits': regclass.transcript.credits, 'gpa': regclass.transcript.gpa})
def report_card(request):
- return render_to_response('transcript/report_card.html')
+ regclass = request.session['regclass']
+ transcript = regclass.transcript.sort_by_term()
+ grade_distribution = tr.grade_distribution()
+ term_groups = transcript.group_by_term()
+ return render_to_response('transcript/report_card.html' ,{'grade_distribution':grade_distribution, 'term_groups':term_groups})

0 comments on commit 0b83a56

Please sign in to comment.