Browse Source

Fix broken migration adjustment

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

4
legacy/migration.py

@ -244,10 +244,10 @@ 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
def adjust_parlamentar(new_parlamentar, old): def adjust_parlamentar(new_parlamentar, old):

Loading…
Cancel
Save