mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:12:17 +01:00 
			
		
		
		
	Add default order for solutions and syntheses
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		@@ -566,6 +566,7 @@ class Solution(models.Model):
 | 
				
			|||||||
        verbose_name = _("solution")
 | 
					        verbose_name = _("solution")
 | 
				
			||||||
        verbose_name_plural = _("solutions")
 | 
					        verbose_name_plural = _("solutions")
 | 
				
			||||||
        unique_together = (('participation', 'problem', 'final_solution', ), )
 | 
					        unique_together = (('participation', 'problem', 'final_solution', ), )
 | 
				
			||||||
 | 
					        ordering = ('participation__team__trigram', 'problem',)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Synthesis(models.Model):
 | 
					class Synthesis(models.Model):
 | 
				
			||||||
@@ -609,6 +610,7 @@ class Synthesis(models.Model):
 | 
				
			|||||||
        verbose_name = _("synthesis")
 | 
					        verbose_name = _("synthesis")
 | 
				
			||||||
        verbose_name_plural = _("syntheses")
 | 
					        verbose_name_plural = _("syntheses")
 | 
				
			||||||
        unique_together = (('participation', 'passage', 'type', ), )
 | 
					        unique_together = (('participation', 'passage', 'type', ), )
 | 
				
			||||||
 | 
					        ordering = ('passage__pool__round', 'type',)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Note(models.Model):
 | 
					class Note(models.Model):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user