From: Guillaume Pellerin Date: Thu, 25 Apr 2019 09:57:39 +0000 (+0200) Subject: fix no conf X-Git-Tag: 1.4.1~29^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b6c3b6c5f9350f4c6e0c677484ae7e10442e18f3;p=teleforma.git fix no conf --- diff --git a/teleforma/templatetags/teleforma_tags.py b/teleforma/templatetags/teleforma_tags.py index 033ca02f..77d83bba 100644 --- a/teleforma/templatetags/teleforma_tags.py +++ b/teleforma/templatetags/teleforma_tags.py @@ -129,7 +129,8 @@ def from_course_type(contents, type): @register.filter def streaming_only(contents): - return contents.filter(streaming=True) + if contents: + return contents.filter(streaming=True) @register.filter def from_doc_type(contents, type):