]> git.parisson.com Git - teleforma.git/commitdiff
fix no conf
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 25 Apr 2019 09:57:39 +0000 (11:57 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 25 Apr 2019 09:57:39 +0000 (11:57 +0200)
teleforma/templatetags/teleforma_tags.py

index 033ca02fae5af63156b9db6858350cac43f652fe..77d83bba065d7e7657c41d21e8c2cfa40ae18d7a 100644 (file)
@@ -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):