diff --git a/opentech/apply/funds/management/commands/migrate_rr_applications.py b/opentech/apply/funds/management/commands/migrate_rr_applications.py index 157822fceb8c240df1d12e4d8c4e83543cbae6a4..d9cf561b29b5303890e0be04b35fa35a292fc5cf 100644 --- a/opentech/apply/funds/management/commands/migrate_rr_applications.py +++ b/opentech/apply/funds/management/commands/migrate_rr_applications.py @@ -15,7 +15,6 @@ class Command(MigrateCommand): "field_application_name": { "id": "full_name", "type": "value", - # If no Drupal value key is specified, we default to 'value' "key": "safe_value", }, "field_application_mail": { diff --git a/opentech/apply/funds/management/commands/migration_base.py b/opentech/apply/funds/management/commands/migration_base.py index 4677175dd960b2652bdff6c675841bb68b3cb3fc..e19e97e225b31dd4aa0e41c9fdf3e6a5ebf736c8 100644 --- a/opentech/apply/funds/management/commands/migration_base.py +++ b/opentech/apply/funds/management/commands/migration_base.py @@ -109,6 +109,9 @@ class MigrateCommand(BaseCommand): else: form_data["email"] = f"user+{node['uid']}@exeample.com" + if "address" not in form_data: + form_data["address"] = json.dumps({"country": "GB", "thoroughfare": "This is not a real address!", "premise": "", "localityname": "London", "administrativearea": "", "postalcode": "123"}) + submission.form_data = form_data try: