From b6c9f96d60e02e8eb217176518e95281ef2135e0 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 13 Oct 2010 11:45:12 +0100 Subject: [PATCH] Show alliance on the character list --- sso/views.py | 2 +- templates/sso/characterlist.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sso/views.py b/sso/views.py index b732b5b..d163856 100644 --- a/sso/views.py +++ b/sso/views.py @@ -50,7 +50,7 @@ def characters(request, charid=0): for acc in eveaccounts: chars = acc.characters.all() for char in chars: - characters.append({'id': char.id, 'name': char.name, 'corp': char.corporation.name}) + characters.append({'id': char.id, 'name': char.name, 'corp': char.corporation }) except EVEAccount.DoesNotExist: characters = [] diff --git a/templates/sso/characterlist.html b/templates/sso/characterlist.html index 1fbb032..982dd98 100644 --- a/templates/sso/characterlist.html +++ b/templates/sso/characterlist.html @@ -6,10 +6,11 @@ {% if characters %} - + {% for char in characters %} + {% endfor %}
Character NameCorp
Character NameCorporationAlliance
{{ char.name }} {{ char.corp }}{% if char.corp.alliance %}{{ char.corp.alliance }}{% endif %}