From f5e82513b836a284628e3ffcae9d1c2485e9cf8e Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 28 Dec 2010 21:18:39 +0000 Subject: [PATCH] Group characters by API ID --- templates/sso/lookup/user.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/sso/lookup/user.html b/templates/sso/lookup/user.html index 69d377c..530a3f7 100644 --- a/templates/sso/lookup/user.html +++ b/templates/sso/lookup/user.html @@ -60,14 +60,17 @@ {% endif %}
-{% if characters %} +{% if user.eveaccount_set.all %} -{% for char in characters %} +{% for acc in user.eveaccount_set.all %} + +{% for char in acc.characters.all %} {% endfor %} +{% endfor %}
Character NameCorp
Account {{ acc.api_user_id }}
{{ char.name }} {{ char.corporation }}
{% endif %}