Browse Source

Fix broken migration adjustment

pull/6/head
Marcio Mazza 10 years ago
parent
commit
db8a7bd7cb
  1. 2
      legacy/migration.py

2
legacy/migration.py

@ -244,7 +244,7 @@ def adjust_participacao(new_participacao, old):
comissao=composicao.comissao, periodo=composicao.periodo) comissao=composicao.comissao, periodo=composicao.periodo)
if already_created: if already_created:
assert len(already_created) == 1 # we must never have made 2 copies assert len(already_created) == 1 # we must never have made 2 copies
return already_created[0] [composicao] = already_created
else: else:
composicao.save() composicao.save()
new_participacao.composicao = composicao new_participacao.composicao = composicao

Loading…
Cancel
Save