From 755b03803c20d13044dd38ad45e7abd7101f4142 Mon Sep 17 00:00:00 2001
From: eduardormanika <67868473+eduardormanika@users.noreply.github.com>
Date: Sun, 5 Jul 2020 13:16:16 -0300
Subject: [PATCH] Orders trustees by id

Orders trustees by id to garantee access order on "freeze" method
---
 helios/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helios/models.py b/helios/models.py
index 4252d16..1c17f15 100644
--- a/helios/models.py
+++ b/helios/models.py
@@ -1171,7 +1171,7 @@ class Trustee(HeliosModel):
   
   @classmethod
   def get_by_election(cls, election):
-    return cls.objects.filter(election = election)
+    return cls.objects.filter(election = election).order_by('id')
 
   @classmethod
   def get_by_uuid(cls, uuid):
-- 
GitLab