From 9d93b1920f95ed6f5a52d6a914f00238ef009f47 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 29 Sep 2015 23:17:23 +0200 Subject: [PATCH] fix empty audio file --- app/templates/shop/product.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/shop/product.html b/app/templates/shop/product.html index c72474c..9f9cb0a 100644 --- a/app/templates/shop/product.html +++ b/app/templates/shop/product.html @@ -98,7 +98,7 @@ $(function () { {{ product.content|richtext_filters|safe }} {% endeditable %} - {% if product.record.audio_file %} + {% if product.record.audio_file and not product.record.audio_file.path == "uploads/audio/records/" %}