fix value error on missing org logo

This commit is contained in:
krmax44 2022-03-15 14:23:23 +01:00
parent 0f8e0b3c17
commit f9cc37fdbf
No known key found for this signature in database
GPG key ID: 5C499A4F4EC4EE03

View file

@ -107,7 +107,11 @@
<dt>Beobachtet von</dt> <dt>Beobachtet von</dt>
<dd> <dd>
<a href="{{ object.organization.website }}"> <a href="{{ object.organization.website }}">
{% if object.organization.logo %}
<img src="{{ object.organization.logo.url }}" class="img-sm" alt="{{ object.organization.name }}"> <img src="{{ object.organization.logo.url }}" class="img-sm" alt="{{ object.organization.name }}">
{% else %}
{{ object.organization.name }}
{% endif %}
</a> </a>
</dd> </dd>
{% endif %} {% endif %}