Merge pull request #266 from eReuse/bugfix/#3380-to-text

Fix error when trade.document.url is None on device_list.html
This commit is contained in:
Santiago L 2022-05-11 18:23:24 +02:00 committed by GitHub
commit 87194cf090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@
{% for doc in lot.trade.documents %}
<tr>
<td>
{% if doc.url.to_text() %}
{% if doc.url %}
<a href="{{ doc.url.to_text() }}" target="_blank">{{ doc.file_name}}</a>
{% else %}
{{ doc.file_name}}