diff --git a/sso/views.py b/sso/views.py index 7acbe07..83cc644 100644 --- a/sso/views.py +++ b/sso/views.py @@ -254,7 +254,7 @@ def user_view(request, username=None): for acc in eveaccounts: chars = acc.characters.all() for char in chars: - characters.append({'name': char.name, 'corp': char.corporation.name}) + characters.append({'id': char.id, 'name': char.name, 'corp': char.corporation.name}) except EVEAccount.DoesNotExist: eveaccounts = None diff --git a/templates/sso/lookup/user.html b/templates/sso/lookup/user.html index 8b43823..1279ce3 100644 --- a/templates/sso/lookup/user.html +++ b/templates/sso/lookup/user.html @@ -41,7 +41,7 @@ {% for char in characters %} - + {% endfor %} @@ -52,12 +52,17 @@

Reddit Accounts

{% if reddits %}
Character NameCorp
{{ char.name }}
{{ char.name }} {{ char.corp }}
- + + + + {% for acc in reddits %} + {% endfor %} +
UsernameCreated Date
UsernameCreated DateValidated
{{ acc.username }} {{ acc.date_created }}{% if acc.validated %}Yes{% else %}No{% endif %}
{% endif %} {% endif %}