From bdc04c643c95256234f40cc1a3a9c453b6e9b646 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 11 May 2022 18:14:33 +0200 Subject: [PATCH] fixed url == None --- ereuse_devicehub/templates/inventory/device_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index ef8f7aef..58c10a78 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -392,7 +392,7 @@ {% for doc in lot.trade.documents %} - {% if doc.url.to_text() %} + {% if doc.url %} {{ doc.file_name}} {% else %} {{ doc.file_name}}