Ticket #7034: django.nodelist.patch

File django.nodelist.patch, 472 bytes (added by kilian, 16 years ago)
  • __init__.py

    old new  
    736736        if isinstance(self, nodetype):
    737737            nodes.append(self)
    738738        if hasattr(self, 'nodelist'):
    739             nodes.extend(self.nodelist.get_nodes_by_type(nodetype))
     739            if self.nodelist is not None:
     740                nodes.extend(self.nodelist.get_nodes_by_type(nodetype))
    740741        return nodes
    741742
    742743class NodeList(list):
Back to Top