Ticket #17303: patch.diff

File patch.diff, 722 bytes (added by anonymous, 13 years ago)
  • django/template/loaders/cached.py

     
    1919    def loaders(self):
    2020        # Resolve loaders on demand to avoid circular imports
    2121        if not self._cached_loaders:
     22            cached_loaders = []
    2223            for loader in self._loaders:
    23                 self._cached_loaders.append(find_template_loader(loader))
     24                cached_loaders.append(find_template_loader(loader))
     25            self._cached_loaders = cached_loaders
    2426        return self._cached_loaders
    2527
    2628    def find_template(self, name, dirs=None):
Back to Top