Ticket #7034: django.nodelist.patch
File django.nodelist.patch, 472 bytes (added by , 17 years ago) |
---|
-
__init__.py
old new 736 736 if isinstance(self, nodetype): 737 737 nodes.append(self) 738 738 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)) 740 741 return nodes 741 742 742 743 class NodeList(list):