diff --git a/apps/participation/models.py b/apps/participation/models.py index 0411a92..eda1d36 100644 --- a/apps/participation/models.py +++ b/apps/participation/models.py @@ -566,6 +566,7 @@ class Solution(models.Model): verbose_name = _("solution") verbose_name_plural = _("solutions") unique_together = (('participation', 'problem', 'final_solution', ), ) + ordering = ('participation__team__trigram', 'problem',) class Synthesis(models.Model): @@ -609,6 +610,7 @@ class Synthesis(models.Model): verbose_name = _("synthesis") verbose_name_plural = _("syntheses") unique_together = (('participation', 'passage', 'type', ), ) + ordering = ('passage__pool__round', 'type',) class Note(models.Model):