Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Fixes a migration error
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Oct 26, 2017
1 parent d3a3fdf commit 9613130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onegov/directory/migration.py
Expand Up @@ -96,12 +96,12 @@ def execute(self):
self.directory.configuration.rename_field(old_human, new_human)

for changed in self.changes.changed_fields:
changed = as_internal_id(changed)
convert = self.fieldtype_migrations.get_converter(
self.changes.old[changed].type,
self.changes.new[changed].type
)

changed = as_internal_id(changed)
entry.values[changed] = convert(entry.values[changed])

self.directory.update(entry, entry.values)
Expand Down

0 comments on commit 9613130

Please sign in to comment.