diff --git a/helios/templates/voters_list.html b/helios/templates/voters_list.html index b5090a08868dafad799ede65ee687485bda00a77..ce32bd122dc5ade8286fa9e6c97f6e13e58c4b65 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 970c3ad91a56a1f1bfc2cf0d0c591f9d47a9da2b..60c0bd376c35b51b35d5f0fa4dde651873d2111f 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 = (