Skip to content
Snippets Groups Projects
Commit ce0a9bef authored by Ben Adida's avatar Ben Adida
Browse files

added migrations for election and voter fields

parent 9efb5967
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,6 @@ class HeliosObject(object):
JSON_FIELDS = None
def __init__(self, **kwargs):
import pdb; pdb.set_trace()
self.set_from_args(**kwargs)
# generate uuid if need be
......
......@@ -552,9 +552,11 @@ class Voter(models.Model, electionalgs.Voter):
# let's link directly to the user now
# FIXME: delete this as soon as migrations are set up
name = models.CharField(max_length = 200, null=True)
voter_type = models.CharField(max_length = 100)
voter_id = models.CharField(max_length = 100)
#name = models.CharField(max_length = 200, null=True)
#voter_type = models.CharField(max_length = 100)
#voter_id = models.CharField(max_length = 100)
uuid = models.CharField(max_length = 50)
# for users of type password, no user object is created
# but a dynamic user object is created automatically
......@@ -566,8 +568,6 @@ class Voter(models.Model, electionalgs.Voter):
voter_name = models.CharField(max_length = 200, null=True)
voter_email = models.CharField(max_length = 250, null=True)
uuid = models.CharField(max_length = 50)
# if election uses aliases
alias = models.CharField(max_length = 100, null=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment