Reviewers: ,


Please review this at http://codereview.tryton.org/782002/

Affected files:
  M trytond/model/modelstorage.py


Index: trytond/model/modelstorage.py
===================================================================

--- a/trytond/model/modelstorage.py
+++ b/trytond/model/modelstorage.py
@@ -153,7 +153,7 @@

         # Clean cursor cache
         for cache in Transaction().cursor.cache.values():
- for cache in (cache, cache.get('_language_cache', {}).values()): + for cache in [cache] + cache.get('_language_cache', {}).values():
                 if self._name in cache:
                     if isinstance(ids, (int, long)):
                         ids = [ids]
@@ -221,7 +221,7 @@

         # Clean cursor cache
         for cache in Transaction().cursor.cache.values():
- for cache in (cache, cache.get('_language_cache', {}).values()): + for cache in [cache] + cache.get('_language_cache', {}).values():
                 if self._name in cache:
                     if isinstance(ids, (int, long)):
                         ids = [ids]



Reply via email to