Add stream for CompositionView

This commit is contained in:
38elements
2017-05-07 18:33:47 +09:00
parent ef2cc7ebf5
commit 931397c7e1
5 changed files with 76 additions and 3 deletions

View File

@@ -352,4 +352,4 @@ class Router:
:return: bool
"""
handler = self.get(request)[0]
return handler.is_stream
return hasattr(handler, 'is_stream') and handler.is_stream