Commit 9a1f209f by Julien Jorry

FAQ Admin : add image on admin list BIS

parent 23efcade
......@@ -2,5 +2,9 @@
{% block field%}
{# <img src="{{ vich_uploader_asset(object, 'file') }}" alt="" style="max-height: 50px; max-width: 50px;" /> #}
{% if object.image is defined %}
{% thumbnail object.image, 'small' %}
{% elseif object.media is defined %}
{% thumbnail object.media, 'preview' %}
{% endif %}
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment