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

fixed voter list template

parent 339e7aae
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,13 @@ You can change this setting: ...@@ -61,7 +61,13 @@ You can change this setting:
Prior Bulk Uploads: Prior Bulk Uploads:
<ul> <ul>
{% for vf in voter_files %} {% for vf in voter_files %}
<li> {{vf.voter_file.size}} bytes, at {{vf.uploaded_at}}: <li>
{% if vf.voter_file %}
{{vf.voter_file.size}}
{% else %}
{{vf.voter_file_content|length}}
{% endif %}
bytes, at {{vf.uploaded_at}}:
{% if vf.processing_finished_at %} {% if vf.processing_finished_at %}
<em>done processing: {{vf.num_voters}} voters loaded</em> <em>done processing: {{vf.num_voters}} voters loaded</em>
{% else %} {% else %}
......
...@@ -8,7 +8,7 @@ def get_from_env(var, default): ...@@ -8,7 +8,7 @@ def get_from_env(var, default):
else: else:
return default return default
DEBUG = False DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
ADMINS = ( ADMINS = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment