diff --git a/helios/models.py b/helios/models.py index 1c17f155bdc51eef128815ae0d9534a9b2011533..96e83ddc5755b02ff4fe1baf1384f8db03844df7 100644 --- a/helios/models.py +++ b/helios/models.py @@ -510,7 +510,7 @@ class Election(HeliosModel): self.set_eligibility() # public key for trustees - trustees = Trustee.get_by_election(self) + trustees = list(Trustee.get_by_election(self)) combined_pk = trustees[0].public_key for t in trustees[1:]: combined_pk = combined_pk * t.public_key @@ -1171,7 +1171,7 @@ class Trustee(HeliosModel): @classmethod def get_by_election(cls, election): - return cls.objects.filter(election = election).order_by('id') + return cls.objects.filter(election = election) @classmethod def get_by_uuid(cls, uuid):