From ffaf148dba92df54e9801840293512aa46d71d0c Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Wed, 9 Mar 2011 15:13:02 -0800
Subject: [PATCH] another small tweak to the migration script for futher
 efficiency

---
 .../0003_v3_1_election_specific_voters_with_passwords.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helios/migrations/0003_v3_1_election_specific_voters_with_passwords.py b/helios/migrations/0003_v3_1_election_specific_voters_with_passwords.py
index 008c9c6..cd9c3d3 100644
--- a/helios/migrations/0003_v3_1_election_specific_voters_with_passwords.py
+++ b/helios/migrations/0003_v3_1_election_specific_voters_with_passwords.py
@@ -33,7 +33,7 @@ class Migration(DataMigration):
             v.save()
 
         # also, update tinyhash for all votes
-        for cv in orm.CastVote.objects.all():
+        for cv in orm.CastVote.objects.all().iterator():
             safe_hash = cv.vote_hash
             for c in ['/', '+']:
                 safe_hash = safe_hash.replace(c,'')
-- 
GitLab