diff --git a/netbox/templates/dcim/device_delete.html b/netbox/templates/dcim/device_delete.html index 5d1b0a394..587dad0b7 100644 --- a/netbox/templates/dcim/device_delete.html +++ b/netbox/templates/dcim/device_delete.html @@ -1,8 +1,8 @@ {% extends 'utilities/confirmation_form.html' %} {% load form_helpers %} -{% block title %}Delete device {{ device }}?{% endblock %} +{% block title %}Delete device {{ obj }}?{% endblock %} {% block message %} -
Are you sure you want to delete {{ device }}?
+Are you sure you want to delete {{ obj }}?
{% endblock %} diff --git a/netbox/templates/dcim/device_edit.html b/netbox/templates/dcim/device_edit.html index 86ab2be81..dfc1ad5d2 100644 --- a/netbox/templates/dcim/device_edit.html +++ b/netbox/templates/dcim/device_edit.html @@ -1,11 +1,11 @@ {% extends '_base.html' %} {% load form_helpers %} -{% block title %}{% if device %}Editing device {{ device }}{% else %}Add a device{% endif %}{% endblock %} +{% block title %}{% if obj %}Editing device {{ obj }}{% else %}Add a device{% endif %}{% endblock %} {% block content %} -{% if device %} -