diff --git a/eos/base/election.py b/eos/base/election.py index d018107..2997b71 100644 --- a/eos/base/election.py +++ b/eos/base/election.py @@ -140,9 +140,12 @@ class RawResult(Result): return combined class Election(TopLevelObject): + _ver = StringField(default='0.2') + _id = UUIDField() workflow = EmbeddedObjectField(Workflow) # Once saved, we don't care what kind of workflow it is name = StringField() + kind = StringField(default='election') voters = EmbeddedObjectListField(is_hashed=False) questions = EmbeddedObjectListField() results = EmbeddedObjectListField(is_hashed=False) diff --git a/eosweb/core/templates/election/base.html b/eosweb/core/templates/election/base.html index 5b36f50..ad0db33 100644 --- a/eosweb/core/templates/election/base.html +++ b/eosweb/core/templates/election/base.html @@ -27,7 +27,7 @@ {% block content %}

{{ election.name }}

-

Election fingerprint: {{ SHA256().update_obj(election).hash_as_b64() }}

+

{{ election.kind|title }} fingerprint: {{ SHA256().update_obj(election).hash_as_b64() }}