|
|
@@ -41,8 +41,8 @@
|
|
|
<tr>
|
|
|
<th scope="row">Connected Device</th>
|
|
|
<td>
|
|
|
- {% if object.connected_endpoint %}
|
|
|
- {{ object.connected_endpoint.device|linkify }} ({{ object.connected_endpoint }})
|
|
|
+ {% if object.connected_endpoints %}
|
|
|
+ {{ object.connected_endpoints.0.device|linkify }} ({{ object.connected_endpoints.0|linkify:"name" }})
|
|
|
{% else %}
|
|
|
{{ ''|placeholder }}
|
|
|
{% endif %}
|
|
|
@@ -50,7 +50,7 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th scope="row">Utilization (Allocated)</th>
|
|
|
- {% with utilization=object.connected_endpoint.get_power_draw %}
|
|
|
+ {% with utilization=object.connected_endpoints.0.get_power_draw %}
|
|
|
{% if utilization %}
|
|
|
<td>
|
|
|
{{ utilization.allocated }}VA / {{ object.available_power }}VA
|