diff --git a/colloscope/models.py b/colloscope/models.py index dfa58b2..d59492e 100644 --- a/colloscope/models.py +++ b/colloscope/models.py @@ -149,7 +149,7 @@ class Term(models.Model): .annotate(swap_plus=Count("swap", filter=Q(swap__enroll=1), distinct=True)) .annotate(swap_minus=Count("swap", filter=Q(swap__enroll=0), distinct=True)) .annotate(volume=F("base_vol") + F("swap_plus") - F("swap_minus")) - .order_by()) + .order_by("date", "slot__time")) def query_colles_of_student(self, student) -> QuerySet: has_student = ((Q(groups__student=student) @@ -224,7 +224,7 @@ class Group(models.Model): return [ (sem, lundi, - colles_flat.filter(date__gte=lundi, date__lt=lundi + timedelta(weeks=1))) + colles_fla.filter(date__gte=lundi, date__lt=lundi + timedelta(weeks=1))) for sem, lundi in semaines ]""" diff --git a/colloscope/templates/dashboard.html b/colloscope/templates/dashboard.html index 8b6c39b..0a0a61b 100644 --- a/colloscope/templates/dashboard.html +++ b/colloscope/templates/dashboard.html @@ -1,5 +1,8 @@ {% extends "base.html" %} +{% load static %} +{% load extras %} + {% block title %}Tableau de bord{% endblock title %} {% block main %} @@ -14,38 +17,38 @@ Bienvenue {{ student }}. Votre lycée est {{ term.cls.school.description }}, et
Exporter en .ics (ceci est un permalien public)
+Exporter en .ics (ceci est un permalien public)
-