From 28e22755440ecbb4040da78430866f5cc0c0fe99 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sun, 23 Oct 2011 14:27:34 -0700 Subject: [PATCH] fixed voter list template --- helios/templates/voters_list.html | 8 +++++++- settings.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/helios/templates/voters_list.html b/helios/templates/voters_list.html index b5090a0..ce32bd1 100644 --- a/helios/templates/voters_list.html +++ b/helios/templates/voters_list.html @@ -61,7 +61,13 @@ You can change this setting: Prior Bulk Uploads: <ul> {% 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 %} <em>done processing: {{vf.num_voters}} voters loaded</em> {% else %} diff --git a/settings.py b/settings.py index 970c3ad..60c0bd3 100644 --- a/settings.py +++ b/settings.py @@ -8,7 +8,7 @@ def get_from_env(var, default): else: return default -DEBUG = False +DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( -- GitLab