From b77fb0d91e9a3a867c2decdd47dc1f7daff22025 Mon Sep 17 00:00:00 2001 From: stef Date: Fri, 10 Jun 2011 16:24:58 +0200 Subject: [PATCH] [fix] correct migration of committee name --- migration/part-04-jsontosql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/part-04-jsontosql.py b/migration/part-04-jsontosql.py index d3946ea4..663b04c3 100755 --- a/migration/part-04-jsontosql.py +++ b/migration/part-04-jsontosql.py @@ -221,7 +221,7 @@ def _create_role(functions, _mep): _begin = date(int(b["year"]), int(b["month"]), int(b["day"])) e = f["end_term"] _end = date(int(e["year"]), int(e["month"]), int(e["day"])) - CommitteeRole.objects.create(mep=_mep, role=f["role"], delegation=Delegation.objects.get(name=f["label"]), begin=_begin, end=_end) + CommitteeRole.objects.create(mep=_mep, role=f["role"], delegation=Committee.objects.get(abbreviation=f["abbreviation"]), begin=_begin, end=_end) def _create_cv(cv, _mep): if type(cv) is list: