Skip to content
Snippets Groups Projects
Unverified Commit 86d5acfe authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #674 from OpenTechFund/fix/migration-addressfield

Address field no longer requeried so remove fake address. Remove non …
parents 36750ac5 c418ecf0
No related branches found
No related tags found
No related merge requests found
......@@ -140,9 +140,6 @@ class MigrateCommand(BaseCommand):
else:
form_data["email"] = f"user+{node['uid']}@example.com"
if "address" not in form_data or not form_data["address"]:
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:
......
......@@ -75,7 +75,6 @@ class Command(BaseCommand):
groups = []
role_map = {
'council': 'Reviewer',
'administrator': 'Editors',
}
if self.is_staff(user['mail']):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment