Commits

Alan Justino committed 90d6cb9

[FIX] RuntimeError: maximum recursion depth exceeded

Comments (0)

Files changed (1)

storages/backends/filecache.py

         return getattr(self.master_storage, name)
 
     def __setattr__(self, name, value):
-        setattr(self.master_storage, name, value)
+        if hasattr(self, 'master_storage') and hasattr(self.master_storage, name):
+            setattr(self.master_storage, name, value)
+        else:
+            super(FileCacheMixin, self).__setattr__(name, value)
 
     """
     Comes from http://www.djangosnippets.org/snippets/976/