diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 589ec2ae..96aeae64 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -41,10 +41,10 @@

{{ lot.name }}

- {% if lot.transfer.code and not lot.transfer.user_to.phantom %} - {{ lot.transfer.code }} -> {{ lot.transfer.user_to.email }} - {% elif lot.transfer.code and not lot.transfer.user_from.phantom %} - {{ lot.transfer.user_from.email }} -> {{ lot.transfer.code }} + {% if lot.transfer.code and lot.transfer.user_to and not lot.transfer.user_to.phantom %} + {{ lot.transfer.code }} {{ lot.transfer.user_to.email }} + {% elif lot.transfer.code and lot.transfer.user_from and not lot.transfer.user_from.phantom %} + {{ lot.transfer.user_from.email }} {{ lot.transfer.code }} {% endif %}