Skip to content

Commit

Permalink
Fix typo in template - use correct field
Browse files Browse the repository at this point in the history
Using the nonexistent field `user_agents` ends up displaying the default `unknown on unknown` for the user agent. This fixes the issue so that the correct UA value is displayed.
  • Loading branch information
gera authored and Bouke committed Apr 11, 2017
1 parent dbf4102 commit b510489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_sessions/templates/user_sessions/session_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>{% trans "Active Sessions" %}</h1>
{% for object in object_list %}
<tr {% if object.session_key == session_key %}class="active"{% endif %}>
<td>{{ object.ip|location|default_if_none:unknown|safe }} <small>({{ object.ip }})</small></td>
<td>{{ object.user_agents|device|default_if_none:unknown_on_unknown|safe }}</td>
<td>{{ object.user_agent|device|default_if_none:unknown_on_unknown|safe }}</td>
<td>
{% if object.session_key == session_key %}
{% blocktrans with time=object.last_activity|timesince %}{{ time }} ago (this session){% endblocktrans %}
Expand Down

0 comments on commit b510489

Please sign in to comment.