summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-05-01 22:11:52 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-05-01 22:11:52 +0200
commit2656a252ab9add975fa278efa8918b6dd5078a08 (patch)
treed088368109c72f687edea2fdf0fe814c4766b4ad
parent7b26ea391739b1c9e5455fa49a010ed7cfe49fc5 (diff)
downloadmarks-master.tar.gz
marks-master.tar.bz2
* Sort ratings and marks sets on home pageHEADmaster
-rw-r--r--main/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/views.py b/main/views.py
index 144bc8f..f3e0385 100644
--- a/main/views.py
+++ b/main/views.py
@@ -77,8 +77,8 @@ def home_view (request):
"add_ratings_form": add_ratings_form,
"add_marks_form": add_marks_form,
"exams": user_data["exams"],
- "ratings": user_data["ratings"],
- "marks": user_data["marks"],
+ "ratings": sorted (user_data["ratings"].keys ()),
+ "marks": sorted (user_data["marks"].keys ()),
}
return render_page (request, data, "main/home.html")