{% for host in hosts %}
{# /latesthosts/ returns the host under a nested host attribute -- /hosts/ returns it directly #}
{# TODO: Consider whether we should handle this in the view or change the serializer to return it in the same format #}
{% if host.host %}
{% include "partials/tables/hosts_row.html" with host=host.host %}
{% else %}
{% include "partials/tables/hosts_row.html" with host=host %}
{% endif %}
{% endfor %}