X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/4277b566b93122c8efac805684e423f92e723d1f..7838f389cf5ebed7c23b764581cd563d1865828c:/contrib/shipherd/models.py diff --git a/contrib/shipherd/models.py b/contrib/shipherd/models.py index e43e8d9..72bd775 100644 --- a/contrib/shipherd/models.py +++ b/contrib/shipherd/models.py @@ -111,7 +111,7 @@ class NavigationManager(TreeManager): """ if navigation is None: self.__class__._cache.clear() - else: + elif self.db in self.__class__._cache: cache = self.__class__._cache[self.db] for pk, qs in cache.items(): if navigation in qs: