From: Guillaume Pellerin Date: Tue, 29 Sep 2015 21:17:23 +0000 (+0200) Subject: fix empty audio file X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9d93b1920f95ed6f5a52d6a914f00238ef009f47;p=diggersdigest.git fix empty audio file --- 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/" %}