Prerequisites:
* Python 2.5.4+ <http://www.python.org/>
- * Django 1.1.1+ <http://www.djangoproject.com/>
+ * Django 1.2+ <http://www.djangoproject.com/>
* (Optional) django-grappelli 2.0+ <http://code.google.com/p/django-grappelli/>
To contribute, please visit the project website <http://philo.ithinksw.org/>.
nodes = []
for node in nodelist:
try:
- for nodelist_name in ('nodelist', 'nodelist_loop', 'nodelist_empty', 'nodelist_true', 'nodelist_false', 'nodelist_main'):
- if hasattr(node, nodelist_name):
- nodes.extend(nodelist_container_nodes(getattr(node, nodelist_name)))
+ if hasattr(node, 'child_nodelists'):
+ for nodelist_name in node.child_nodelists:
+ if hasattr(node, nodelist_name):
+ nodes.extend(nodelist_container_nodes(getattr(node, nodelist_name)))
if isinstance(node, ContainerNode):
nodes.append(node)
elif isinstance(node, ExtendsNode):