Pass a list to write()

This commit is contained in:
Sim? Albert i Beltran 2017-11-29 11:55:42 +01:00
parent 73c37f3beb
commit 1a90eeb579
1 changed files with 2 additions and 2 deletions

View File

@ -1558,11 +1558,11 @@ class CreateFemale(Wizard):
'imported': False,
})
if cycle.foster_events:
Foster.write(cycle.foster_events, {
Foster.write(list(cycle.foster_events), {
'state': 'draft',
})
Foster.validate_event(cycle.foster_events)
Foster.write(cycle.foster_events, {
Foster.write(list(cycle.foster_events), {
'imported': False,
})
if cycle.weaning_event: