fixed url == None
This commit is contained in:
parent
cbf8d68461
commit
bdc04c643c
|
@ -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}}
|
||||
|
|
Reference in a new issue