diff --git a/netbox/templates/users/userkey.html b/netbox/templates/users/userkey.html index 53c8cdc39..09b5bde5b 100644 --- a/netbox/templates/users/userkey.html +++ b/netbox/templates/users/userkey.html @@ -3,7 +3,7 @@ {% block title %}User Key{% endblock %} {% block usercontent %} - {% if userkey %} + {% if object %}
@@ -12,22 +12,22 @@

Your user key is: - {% if userkey.is_active %} + {% if object.is_active %} Active {% else %} Inactive {% endif %}

- {% include 'inc/created_updated.html' with obj=userkey %} - {% if not userkey.is_active %} + {% include 'inc/created_updated.html' %} + {% if not object.is_active %} {% endif %} -
{{ userkey.public_key }}
+
{{ object.public_key }}

- {% if userkey.session_key %} + {% if object.session_key %}
@@ -35,7 +35,7 @@

Session key: Active

- Created {{ userkey.session_key.created }} + Created {{ object.session_key.created }} {% else %}

No active session key

{% endif %} diff --git a/netbox/templates/users/userkey_edit.html b/netbox/templates/users/userkey_edit.html index 0715f9038..a7aaa720c 100644 --- a/netbox/templates/users/userkey_edit.html +++ b/netbox/templates/users/userkey_edit.html @@ -5,7 +5,7 @@ {% block title %}User Key{% endblock %} {% block usercontent %} - {% if userkey.is_active %} + {% if object.is_active %}