Follow PEP-0249 for Transaction and backends
issue4949 review19781002
This commit is contained in:
1 parent
a0deec726f
commit
f7fa6d1b68
1 file changed
+2
-2
@@ -136,7 +136,7 @@ class PartyRelationAll(PartyRelation, ModelView):
|
||||
local_cache.clear()
|
||||
|
||||
# Clean cursor cache
|
||||
for cache in Transaction().cursor.cache.itervalues():
|
||||
for cache in Transaction().cache.itervalues():
|
||||
if cls.__name__ in cache:
|
||||
for record in all_records:
|
||||
for record_id in (record.id, record.reverse_id):
|
||||
@@ -177,7 +177,7 @@ class PartyRelationAll(PartyRelation, ModelView):
|
||||
Transaction().counter += 1
|
||||
|
||||
# Clean cursor cache
|
||||
for cache in Transaction().cursor.cache.values():
|
||||
for cache in Transaction().cache.values():
|
||||
for cache in (cache, cache.get('_language_cache', {}).values()):
|
||||
if cls.__name__ in cache:
|
||||
for record in relations:
|
||||
|
||||
Reference in new issue
Block a user