diff options
Diffstat (limited to 'templates/forms/_field.html')
-rw-r--r-- | templates/forms/_field.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/forms/_field.html b/templates/forms/_field.html index 99db819..41f59d8 100644 --- a/templates/forms/_field.html +++ b/templates/forms/_field.html @@ -17,7 +17,7 @@ {% endif %} {{ field }} </div> - {% if field.field.widget.input_type == "file" %} + {% if field.field.widget.input_type == "file" and field.value%} <img class="preview" src="{{ field.value }}"> {% endif %} </div> |