Browse Source

Merge branch '277-arrumar-datas-obrigatorias' of https://github.com/interlegis/sapl into 277-arrumar-datas-obrigatorias

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/278/head
Luciano Almeida 10 years ago
parent
commit
d8baf9c078
  1. 1
      legacy/migration.py

1
legacy/migration.py

@ -178,6 +178,7 @@ class DataMigrator:
old_field_name = renames.get(field.name)
field_type = field.get_internal_type()
msg = ("Campo %s (%s) da model %s " %
(field.name, field_type, field.model.__name__))
if old_field_name:
old_value = getattr(old, old_field_name)

Loading…
Cancel
Save