Whoops.
This commit is contained in:
parent
2b0a9af3e3
commit
1f57e4ba8a
|
@ -101,8 +101,9 @@ class Database( object ):
|
|||
connection.commit()
|
||||
|
||||
# save any pending saves to the cache
|
||||
for obj in connection.pending_saves:
|
||||
self.__cache.set( obj.cache_key, obj )
|
||||
if self.__cache:
|
||||
for obj in connection.pending_saves:
|
||||
self.__cache.set( obj.cache_key, obj )
|
||||
|
||||
connection.pending_saves = []
|
||||
|
||||
|
|
Reference in New Issue