Merge branch 'develop' of github.com:jezdez/django_compressor into develop
This commit is contained in:
@@ -291,9 +291,8 @@ class Command(NoArgsCommand):
|
|||||||
return count, results
|
return count, results
|
||||||
|
|
||||||
def get_nodelist(self, node):
|
def get_nodelist(self, node):
|
||||||
if (isinstance(node, IfNode) and
|
# Check if node is an ```if``` switch with true and false branches
|
||||||
hasattr(node, 'nodelist_true') and
|
if hasattr(node, 'nodelist_true') and hasattr(node, 'nodelist_false'):
|
||||||
hasattr(node, 'nodelist_false')):
|
|
||||||
return node.nodelist_true + node.nodelist_false
|
return node.nodelist_true + node.nodelist_false
|
||||||
return getattr(node, "nodelist", [])
|
return getattr(node, "nodelist", [])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user