From 8c352d9a1599020505783aa76c0bc1007ecebd8c Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sat, 6 Jun 2015 21:07:29 -0300 Subject: [PATCH] Add todo comment --- legacy/scripts/migrate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/scripts/migrate.py b/legacy/scripts/migrate.py index 24f64bf20..d53f987a3 100644 --- a/legacy/scripts/migrate.py +++ b/legacy/scripts/migrate.py @@ -74,6 +74,9 @@ def migrate(): value = getattr(old, old_field) # check for a relation model_field = model._meta.get_field(new_field) + + # TODO ... test for special transformations first (e.g. Parlamentar.localidade_residencia) + # elfi ... if isinstance(model_field, models.ForeignKey): value = model_field.related_model.objects.get(id=value) setattr(new, new_field, value)