[FIX] fields: in `copy_cache`, add single records to set `todo`

This commit is contained in:
Raphael Collet 2016-02-04 14:33:53 +01:00
parent 0f2e7d783e
commit a3ec5a35a5
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def copy_cache(records, env):
target = record.with_env(env)
for name, value in record._cache.iteritems():
if isinstance(value, BaseModel):
todo.add(value)
todo.update(value)
value = value.with_env(env)
target._cache[name] = value