...
 
Commits (2)
......@@ -27,16 +27,16 @@ def home(request):
# Custom organization for course browser
courses = {
"A1": {
"tronc_commun": Course.objects.filter(year="1A", type="Tronc commun", isAccepted=True),
"electif": Course.objects.filter(year="1A", type="Electif")
"tronc_commun": Course.objects.filter(year="1A", type="Tronc commun", isAccepted=True).order_by('name'),
"electif": Course.objects.filter(year="1A", type="Electif").order_by('name')
},
"A2": {
"tronc_commun": Course.objects.filter(year="2A", type="Tronc commun", isAccepted=True),
"electif": Course.objects.filter(year="2A", type="Electif")
"tronc_commun": Course.objects.filter(year="2A", type="Tronc commun", isAccepted=True).order_by('name'),
"electif": Course.objects.filter(year="2A", type="Electif").order_by('name')
},
"A3": {
"tronc_commun": Course.objects.filter(year="3A", type="Tronc commun", isAccepted=True),
"electif": Course.objects.filter(year="3A", type="Electif")
"tronc_commun": Course.objects.filter(year="3A", type="Tronc commun", isAccepted=True).order_by('name'),
"electif": Course.objects.filter(year="3A", type="Electif").order_by('name')
},
}
......