Add default order for solutions and syntheses
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
fb4edccc40
commit
9797268736
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue