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 %}