Skip to content
Snippets Groups Projects
Commit c418ecf0 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Address field no longer requeried so remove fake address. Remove non existing...

Address field no longer requeried so remove fake address. Remove non existing groups-role from mapping in user migration.
parent 201039c4
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