Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed transcript

  • Loading branch information...
commit 0b83a56c14edc95503243cb015bcfc536912c772 1 parent ec1ad47
David Petersen authored
2  transcript/templates/transcript/report_card.html
View
@@ -4,5 +4,7 @@
<div class="span-24 last">
<h1>Report Card</h1>
<h2>Grade Distribution</h2>
+ {{ term_groups }}
+ {{ grade_distribution }}
</div>
{% endblock %}
8 transcript/views.py
View
@@ -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})
Please sign in to comment.
Something went wrong with that request. Please try again.