Pass a list to write()
This commit is contained in:
parent
73c37f3beb
commit
1a90eeb579
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue