From e0afecb305a0bcedb9baaeb2c05f0e57df777df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20=C3=81lvarez?= Date: Wed, 13 Feb 2013 17:37:55 -0300 Subject: [PATCH] Fixing the way backgrounds history records and category are displayed in the embedded part of the candidate detail --- .../templates/elections/embeded/candidate_detail.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elections/templates/elections/embeded/candidate_detail.html b/elections/templates/elections/embeded/candidate_detail.html index dd7c9c9..98f9059 100644 --- a/elections/templates/elections/embeded/candidate_detail.html +++ b/elections/templates/elections/embeded/candidate_detail.html @@ -98,12 +98,12 @@
{% if candidate.get_background.items %} - {% for background_category, background_items in candidate.get_background.items %} -

{{ background_category }}:

+ {% for category_index, background_category in candidate.get_background.items %} +

{{ background_category.name }}:

- {% for background_label, background_value in background_items.items %} - {{ background_label }}: {% if background_value %}{{ background_value }}{% endif %}
+ {% for background_index, background in background_category.backgrounds.items %} + {{ background.name }}: {% if background.value %}{{ background.value }}{% endif %}
{% endfor %}
{% endfor %}